summaryrefslogtreecommitdiff
path: root/nix/rolling-directory.nix
blob: 4093c3679c68a1d23e7df2ef85a9b105a0c9fcb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv
, zsh, coreutils, findutils, gawk, inotify-tools
}:

stdenv.mkDerivation rec {
  name = "rolling-directory-${version}";
  version = "0.3";
  src = ../rolling-directory;

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh coreutils findutils gawk;
  inotify = inotify-tools;

  buildPhase = ''
    substituteAll $src rolling-directory
  '';

  installPhase = ''
    mkdir -p $out/bin

    install -m 755 -t $out/bin \
      rolling-directory
  '';
}