summaryrefslogtreecommitdiff
path: root/nix/rolling-directory.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/rolling-directory.nix')
-rw-r--r--nix/rolling-directory.nix25
1 files changed, 25 insertions, 0 deletions
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}