summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-03 21:43:36 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-07 11:41:51 +1100
commitc904f6cdcb02c85181cf478496b0b9a78308133a (patch)
tree95c816fbe6ad823f6529cfeaad463a2b9659b37b
parent8a03b1850b3adf005da3f35e696e801d700740ec (diff)
release: rename `release` to `release-lib` to match NixOS
https://github.com/NixOS/nixpkgs/blob/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53/pkgs/top-level/release.nix#L56-L58
-rw-r--r--release.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/release.nix b/release.nix
index b432a29..c4d4c58 100644
--- a/release.nix
+++ b/release.nix
@@ -5,7 +5,12 @@
}:
let
- inherit (release) pkgs;
+ release-lib = import (nixpkgs + "/pkgs/top-level/release-lib.nix") {
+ inherit supportedSystems scrubJobs system;
+ packageSet = import nixpkgs;
+ };
+
+ inherit (release-lib) pkgs;
buildFromConfig = configuration: sel: sel
(import ./. { inherit nixpkgs configuration system; }).config;
@@ -58,11 +63,6 @@ let
in
buildFromConfig configuration (config: config.system.build.run-test);
- release = import (nixpkgs + "/pkgs/top-level/release-lib.nix") {
- inherit supportedSystems scrubJobs;
- packageSet = import nixpkgs;
- };
-
manual = buildFromConfig ({ lib, config, ... }: {
system.stateVersion = lib.mkDefault config.system.maxStateVersion;
}) (config: config.system.build.manual);