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