summaryrefslogtreecommitdiff
path: root/nix/rolling-directory.nix
blob: 3817a099a618d05d5b8779c60b0a5287ea6c897e (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.4";
  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
  '';
}