blob: 04a483b16efbf76323e8ff818b99283a5825133d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ stdenv, makeWrapper
, ghcWithPackages
, thermoprint-server
, extraPackages ? (p: [])
}:
stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: {
name = "${oldAttrs.name}-wrapper";
buildInputs = [makeWrapper];
postInstall = ''
wrapProgram $out/bin/thermoprint-server \
--set NIX_GHC ${ghcWithPackages (p: [thermoprint-server] ++ extraPackages p)}/bin/ghc
'';
})
|