diff options
Diffstat (limited to 'custom/redo-wrapper.nix')
-rw-r--r-- | custom/redo-wrapper.nix | 16 |
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 | |||
3 | let | ||
4 | redo = haskellPackages.callPackage ./redo.nix {}; | ||
5 | in 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 | } | ||