diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-23 18:13:06 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-23 18:13:37 +0900 |
| commit | 8bf162820b291cc3889fd05f4ba7cd4fcbc1d15d (patch) | |
| tree | 53b44cc353629e300d6096345ea0e8cfcc64595f /options.nix | |
| parent | dccb3666080686da73159680590352c23cf69c4f (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 'options.nix')
| -rw-r--r-- | options.nix | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
