fix: build
This commit is contained in:
parent
90b46d44f1
commit
162367a809
1 changed files with 8 additions and 5 deletions
11
flake.nix
11
flake.nix
|
|
@ -25,13 +25,16 @@
|
|||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
postInstall =
|
||||
if pkgs.stdenv.hostPlatform.isLinux then
|
||||
''
|
||||
let
|
||||
linuxWrap = pkgs.lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
|
||||
wrapProgram $out/bin/cultist-website \
|
||||
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.procps ]}
|
||||
'';
|
||||
in
|
||||
''
|
||||
else
|
||||
"";
|
||||
mv $out/bin/website $out/bin/cultist-website
|
||||
${linuxWrap}
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue