diff --git a/flake.nix b/flake.nix index a1f6e03..3cba61b 100644 --- a/flake.nix +++ b/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 ]} - '' - else - ""; + ''; + in + '' + mv $out/bin/website $out/bin/cultist-website + ${linuxWrap} + ''; }; in {