From 79e3aa2beba9f62d9131b30870745037bae3373d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Mar 2024 19:51:15 +0100 Subject: [PATCH] Upgrade to Nix 2.20.5 (CVE-2024-27297) (#882) --- flake.lock | 12 ++++++------ flake.nix | 2 +- src/settings.rs | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index 294d56e..d79c449 100644 --- a/flake.lock +++ b/flake.lock @@ -94,16 +94,16 @@ "nixpkgs-regression": "nixpkgs-regression" }, "locked": { - "lastModified": 1708517151, - "narHash": "sha256-s7QTMxLzVA5UF80sFCv8jwaTMBLA8/110YFkZNkNsCk=", - "rev": "8a8172cd2b5ef2f6dd2d9673a6379447d780ff17", - "revCount": 16129, + "lastModified": 1709808984, + "narHash": "sha256-bfFe38BkoQws7om4gBtBWoNTLkt9piMXdLLoHYl+vBQ=", + "rev": "f8170ce9f119e5e6724eb81ff1b5a2d4c0024000", + "revCount": 16143, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nix/2.20.3/018dcc43-c784-772a-8da1-64165044e9cd/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nix/2.20.5/018e199b-ae2c-703d-ab99-4c648be473b2/source.tar.gz" }, "original": { "type": "tarball", - "url": "https://flakehub.com/f/NixOS/nix/%3D2.20.3.tar.gz" + "url": "https://flakehub.com/f/NixOS/nix/%3D2.20.5.tar.gz" } }, "nixpkgs": { diff --git a/flake.nix b/flake.nix index 257c0ea..c0d102f 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ }; nix = { - url = "https://flakehub.com/f/NixOS/nix/=2.20.3.tar.gz"; + url = "https://flakehub.com/f/NixOS/nix/=2.20.5.tar.gz"; # Omitting `inputs.nixpkgs.follows = "nixpkgs";` on purpose }; diff --git a/src/settings.rs b/src/settings.rs index c57393f..6d7de4d 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -13,19 +13,19 @@ pub const SCRATCH_DIR: &str = "/nix/temp-install-dir"; /// 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.20.3/nix-2.20.3-x86_64-linux.tar.xz"; + "https://releases.nixos.org/nix/nix-2.20.5/nix-2.20.5-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.20.3/nix-2.20.3-i686-linux.tar.xz"; + "https://releases.nixos.org/nix/nix-2.20.5/nix-2.20.5-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.20.3/nix-2.20.3-aarch64-linux.tar.xz"; + "https://releases.nixos.org/nix/nix-2.20.5/nix-2.20.5-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.20.3/nix-2.20.3-x86_64-darwin.tar.xz"; + "https://releases.nixos.org/nix/nix-2.20.5/nix-2.20.5-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.20.3/nix-2.20.3-aarch64-darwin.tar.xz"; + "https://releases.nixos.org/nix/nix-2.20.5/nix-2.20.5-aarch64-darwin.tar.xz"; #[derive(Debug, serde::Deserialize, serde::Serialize, Clone, Copy, PartialEq, Eq)] #[cfg_attr(feature = "cli", derive(clap::ValueEnum))]