summaryrefslogtreecommitdiff
path: root/custom/redo-wrapper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/redo-wrapper.nix')
-rw-r--r--custom/redo-wrapper.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/custom/redo-wrapper.nix b/custom/redo-wrapper.nix
new file mode 100644
index 00000000..20e1675a
--- /dev/null
+++ b/custom/redo-wrapper.nix
@@ -0,0 +1,16 @@
1{ stdenv, makeWrapper, haskellPackages }:
2
3let
4 redo = haskellPackages.callPackage ./redo.nix {};
5in stdenv.mkDerivation {
6 name = "redo-wrapper";
7
8 nativeBuildInputs = [ makeWrapper ];
9
10 buildCommand = ''
11 mkdir -p $out/bin
12 ln -s $out/bin/redo $out/bin/redo-ifchange
13 makeWrapper ${redo}/bin/redo $out/bin/redo \
14 --set REDO_PATH "$out/bin"
15 '';
16}