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 --- options.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'options.nix') diff --git a/options.nix b/options.nix index 4da0f341..5bea3386 100644 --- a/options.nix +++ b/options.nix @@ -2,6 +2,9 @@ let inherit (lib) types mkOption mkEnableOption; + fortify = pkgs.pkgsStatic.callPackage ./package.nix { + inherit (pkgs) bubblewrap xdg-dbus-proxy glibc; + }; in { @@ -11,10 +14,16 @@ in package = mkOption { type = types.package; - default = pkgs.callPackage ./package.nix { }; + default = fortify; description = "The fortify package to use."; }; + fsuPackage = mkOption { + type = types.package; + default = pkgs.callPackage ./cmd/fsu/package.nix { inherit fortify; }; + description = "The fsu package to use."; + }; + users = mkOption { type = let -- cgit v1.3.1