From 162367a8094c6e20857c8e701b10fd9340232475 Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Tue, 19 May 2026 22:53:01 +0300 Subject: [PATCH] fix: build --- flake.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 {