summaryrefslogtreecommitdiff
path: root/custom/redo-wrapper.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-16 19:34:14 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-16 19:34:14 +0200
commit4d8c01d386295e1bcdc73dd088e7ca4197c49054 (patch)
tree05585d939b7e14e87f93a525c5e861881365c358 /custom/redo-wrapper.nix
parenta6328224f3d3f1b05278a0f352432d287bf96eb5 (diff)
parent0c7281ee4a7858b8288cd6c3d60da8b40cb2e698 (diff)
downloadnixos-4d8c01d386295e1bcdc73dd088e7ca4197c49054.tar
nixos-4d8c01d386295e1bcdc73dd088e7ca4197c49054.tar.gz
nixos-4d8c01d386295e1bcdc73dd088e7ca4197c49054.tar.bz2
nixos-4d8c01d386295e1bcdc73dd088e7ca4197c49054.tar.xz
nixos-4d8c01d386295e1bcdc73dd088e7ca4197c49054.zip
Merge branch 'master' of git://git.yggdrasil.li/nixos
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}