aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-23 18:13:06 +0900
committerOphestra <cat@gensokyo.uk>2025-02-23 18:13:37 +0900
commit8bf162820b291cc3889fd05f4ba7cd4fcbc1d15d (patch)
tree53b44cc353629e300d6096345ea0e8cfcc64595f /flake.nix
parentdccb3666080686da73159680590352c23cf69c4f (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix9
1 files changed, 8 insertions, 1 deletions
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; }