summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-18 14:28:15 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-18 14:28:15 +0200
commit1490b9cb5334b1b1704005884a6a4880ed51afc9 (patch)
treebb56adec63d07919d1d4baab2ca02beb27e3cbfe /nix
parentd3900cc71c7a5b06a932d56ce25f694ce31397b0 (diff)
downloadutils-1490b9cb5334b1b1704005884a6a4880ed51afc9.tar
utils-1490b9cb5334b1b1704005884a6a4880ed51afc9.tar.gz
utils-1490b9cb5334b1b1704005884a6a4880ed51afc9.tar.bz2
utils-1490b9cb5334b1b1704005884a6a4880ed51afc9.tar.xz
utils-1490b9cb5334b1b1704005884a6a4880ed51afc9.zip
rolling-directory
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix1
-rw-r--r--nix/rolling-directory.nix25
2 files changed, 26 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix
index 1c0105f..a40d8f6 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -7,4 +7,5 @@ in rec {
7 rebuild-system = pkgs.callPackage ./rebuild-system.nix {}; 7 rebuild-system = pkgs.callPackage ./rebuild-system.nix {};
8 pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {}; 8 pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {};
9 monitor-uucp = pkgs.callPackage ./monitor-uucp.nix {}; 9 monitor-uucp = pkgs.callPackage ./monitor-uucp.nix {};
10 rolling-directory = pkgs.callPackage ./rolling-directory.nix {};
10} 11}
diff --git a/nix/rolling-directory.nix b/nix/rolling-directory.nix
new file mode 100644
index 0000000..bb5dd53
--- /dev/null
+++ b/nix/rolling-directory.nix
@@ -0,0 +1,25 @@
1{ stdenv
2, zsh, coreutils, findutils, gawk, inotify-tools
3}:
4
5stdenv.mkDerivation rec {
6 name = "rolling-directory-${version}";
7 version = "0.2";
8 src = ../rolling-directory;
9
10 phases = [ "buildPhase" "installPhase" ];
11
12 inherit zsh coreutils findutils gawk;
13 inotify = inotify-tools;
14
15 buildPhase = ''
16 substituteAll $src rolling-directory
17 '';
18
19 installPhase = ''
20 mkdir -p $out/bin
21
22 install -m 755 -t $out/bin \
23 rolling-directory
24 '';
25}