From 1490b9cb5334b1b1704005884a6a4880ed51afc9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 18 Apr 2018 14:28:15 +0200 Subject: rolling-directory --- nix/rolling-directory.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nix/rolling-directory.nix (limited to 'nix/rolling-directory.nix') 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 @@ +{ stdenv +, zsh, coreutils, findutils, gawk, inotify-tools +}: + +stdenv.mkDerivation rec { + name = "rolling-directory-${version}"; + version = "0.2"; + 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 + ''; +} -- cgit v1.2.3