From 8bf162820b291cc3889fd05f4ba7cd4fcbc1d15d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Feb 2025 18:13:06 +0900 Subject: nix: separate fsu from package This appears to be the only way to build them with different configuration. This enables static linking in the main package. Signed-off-by: Ophestra --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index c87f0049..ac37474d 100644 --- a/flake.nix +++ b/flake.nix @@ -87,6 +87,10 @@ ''; fortify = callPackage ./tests/fortify { inherit system self; }; + race = callPackage ./tests/fortify { + inherit system self; + withRace = true; + }; } ); @@ -98,7 +102,10 @@ in { default = self.packages.${system}.fortify; - fortify = pkgs.callPackage ./package.nix { }; + fortify = pkgs.pkgsStatic.callPackage ./package.nix { + inherit (pkgs) bubblewrap xdg-dbus-proxy glibc; + }; + fsu = pkgs.callPackage ./cmd/fsu/package.nix { inherit (self.packages.${system}) fortify; }; dist = pkgs.runCommand "${fortify.name}-dist" { inherit (self.devShells.${system}.default) buildInputs; } -- cgit v1.3.1