From 48845883394548a12a692dcbdc250b002cfd043a Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 8 Feb 2023 11:41:36 -0800 Subject: [PATCH] Bump Nix to 2.13.2 (#236) * Bump Nix to 2.13.2 * Use nix 2.13.2 in flake * Prod CI --- flake.lock | 41 ++++++++++++++++++++++++++++------------- flake.nix | 6 +++--- src/settings.rs | 10 +++++----- 3 files changed, 36 insertions(+), 21 deletions(-) diff --git a/flake.lock b/flake.lock index 54bd556..c098032 100644 --- a/flake.lock +++ b/flake.lock @@ -60,37 +60,36 @@ "nix": { "inputs": { "lowdown-src": "lowdown-src", - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs", "nixpkgs-regression": "nixpkgs-regression" }, "locked": { - "lastModified": 1675353954, - "narHash": "sha256-5aXOpkF+PGI5qYkB7wYcs3/75lgsaqcstq2pFTBDJIo=", + "lastModified": 1674678482, + "narHash": "sha256-MtVatZVsV+dtjdD4AC4bztrnDFas+WZYHzQMt41FwzU=", "owner": "nixos", "repo": "nix", - "rev": "5cbeff64f22c854ebeebeb81d6ac247f1ee6aa2a", + "rev": "435a16b5556f4171b4204a3f65c9dedf215f168c", "type": "github" }, "original": { "owner": "nixos", + "ref": "2.13.2", "repo": "nix", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1672580127, - "narHash": "sha256-3lW3xZslREhJogoOkjeZtlBtvFMyxHku7I/9IVehhT8=", - "owner": "nixos", + "lastModified": 1675701457, + "narHash": "sha256-5KssNLx3G9crNjdXPQjb+b+gPYV3zejYoujtxmAOIh0=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "0874168639713f547c05947c76124f78441ea46c", + "rev": "b9118e0197990d717e7ee3430d38db38e1621c49", "type": "github" }, "original": { - "owner": "nixos", - "ref": "nixos-22.05", + "owner": "NixOS", + "ref": "nixos-22.11-small", "repo": "nixpkgs", "type": "github" } @@ -111,12 +110,28 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1672580127, + "narHash": "sha256-3lW3xZslREhJogoOkjeZtlBtvFMyxHku7I/9IVehhT8=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "0874168639713f547c05947c76124f78441ea46c", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-22.05", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "fenix": "fenix", "naersk": "naersk", "nix": "nix", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs_2" } }, "rust-analyzer-src": { diff --git a/flake.nix b/flake.nix index e58297c..85f9443 100644 --- a/flake.nix +++ b/flake.nix @@ -15,8 +15,8 @@ }; nix = { - url = "github:nixos/nix"; - inputs.nixpkgs.follows = "nixpkgs"; + url = "github:nixos/nix/2.13.2"; + # Omitting `inputs.nixpkgs.follows = "nixpkgs";` on purpose }; }; @@ -36,7 +36,7 @@ forSystem = system: f: f rec { inherit system; - pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; }; + pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default nix.overlays.default ]; }; lib = pkgs.lib; }; diff --git a/src/settings.rs b/src/settings.rs index 465f6b0..44296bc 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -10,19 +10,19 @@ use crate::channel_value::ChannelValue; /// Default [`nix_package_url`](CommonSettings::nix_package_url) for Linux x86_64 pub const NIX_X64_64_LINUX_URL: &str = - "https://releases.nixos.org/nix/nix-2.12.0/nix-2.12.0-x86_64-linux.tar.xz"; + "https://releases.nixos.org/nix/nix-2.13.2/nix-2.13.2-x86_64-linux.tar.xz"; /// Default [`nix_package_url`](CommonSettings::nix_package_url) for Linux x86 (32 bit) pub const NIX_I686_LINUX_URL: &str = - "https://releases.nixos.org/nix/nix-2.12.0/nix-2.12.0-i686-linux.tar.xz"; + "https://releases.nixos.org/nix/nix-2.13.2/nix-2.13.2-i686-linux.tar.xz"; /// Default [`nix_package_url`](CommonSettings::nix_package_url) for Linux aarch64 pub const NIX_AARCH64_LINUX_URL: &str = - "https://releases.nixos.org/nix/nix-2.12.0/nix-2.12.0-aarch64-linux.tar.xz"; + "https://releases.nixos.org/nix/nix-2.13.2/nix-2.13.2-aarch64-linux.tar.xz"; /// Default [`nix_package_url`](CommonSettings::nix_package_url) for Darwin x86_64 pub const NIX_X64_64_DARWIN_URL: &str = - "https://releases.nixos.org/nix/nix-2.12.0/nix-2.12.0-x86_64-darwin.tar.xz"; + "https://releases.nixos.org/nix/nix-2.13.2/nix-2.13.2-x86_64-darwin.tar.xz"; /// Default [`nix_package_url`](CommonSettings::nix_package_url) for Darwin aarch64 pub const NIX_AARCH64_DARWIN_URL: &str = - "https://releases.nixos.org/nix/nix-2.12.0/nix-2.12.0-aarch64-darwin.tar.xz"; + "https://releases.nixos.org/nix/nix-2.13.2/nix-2.13.2-aarch64-darwin.tar.xz"; #[derive(Debug, serde::Deserialize, serde::Serialize, Clone, Copy)] #[cfg_attr(feature = "cli", derive(clap::ValueEnum))]