blob: 4988a1737d4c8d1073fd298d04dc4a89551fe5f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ stdenv, makeWrapper
, ghcWithPackages
, thermoprint-server
}:
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])}
'';
})
|