diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-31 14:14:29 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-31 14:14:29 +0000 |
commit | cf296b95d7a670aa7291dee328a9c6f8e645d97e (patch) | |
tree | be87e2293d63cfe25f0f05f22ebd194a8368383b /server | |
parent | 25234d9fc9f281805ab9ab9d44338962213fb23e (diff) | |
download | thermoprint-cf296b95d7a670aa7291dee328a9c6f8e645d97e.tar thermoprint-cf296b95d7a670aa7291dee328a9c6f8e645d97e.tar.gz thermoprint-cf296b95d7a670aa7291dee328a9c6f8e645d97e.tar.bz2 thermoprint-cf296b95d7a670aa7291dee328a9c6f8e645d97e.tar.xz thermoprint-cf296b95d7a670aa7291dee328a9c6f8e645d97e.zip |
Extra packages in wrapper
Diffstat (limited to 'server')
-rw-r--r-- | server/wrapped.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/wrapped.nix b/server/wrapped.nix index 2d16786..04a483b 100644 --- a/server/wrapped.nix +++ b/server/wrapped.nix | |||
@@ -1,6 +1,7 @@ | |||
1 | { stdenv, makeWrapper | 1 | { stdenv, makeWrapper |
2 | , ghcWithPackages | 2 | , ghcWithPackages |
3 | , thermoprint-server | 3 | , thermoprint-server |
4 | , extraPackages ? (p: []) | ||
4 | }: | 5 | }: |
5 | 6 | ||
6 | stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: { | 7 | stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: { |
@@ -8,6 +9,6 @@ stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: { | |||
8 | buildInputs = [makeWrapper]; | 9 | buildInputs = [makeWrapper]; |
9 | postInstall = '' | 10 | postInstall = '' |
10 | wrapProgram $out/bin/thermoprint-server \ | 11 | wrapProgram $out/bin/thermoprint-server \ |
11 | --set NIX_GHC ${ghcWithPackages (p: [thermoprint-server])}/bin/ghc | 12 | --set NIX_GHC ${ghcWithPackages (p: [thermoprint-server] ++ extraPackages p)}/bin/ghc |
12 | ''; | 13 | ''; |
13 | }) | 14 | }) |