fix: build

This commit is contained in:
Lain Iwakura 2026-05-19 22:53:01 +03:00
parent 90b46d44f1
commit 162367a809
Signed by: lain
GPG key ID: 8160466B2E8D1441

View file

@ -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
{