blob: 3a3d7bbcb0a5d3858cb39ecb32e0ecdb4ecde3ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ stdenv, makeWrapper, haskellPackages }:
let
#redo = haskellPackages.callPackage ./redo.nix {};
redo = stdenv.lib.overrideDerivation (haskellPackages.redo) (attrs: {
patches = attrs.patches ++ [./redo.patch];
});
in stdenv.mkDerivation {
name = "redo-wrapper";
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
mkdir -p $out/bin
ln -s $out/bin/redo $out/bin/redo-ifchange
makeWrapper ${redo}/bin/redo $out/bin/redo \
--set REDO_PATH "$out/bin"
'';
}
|