From cf18de031b6df7b597f23ef3d38bd9bc19b4cd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 12 Aug 2025 09:36:31 +0200 Subject: [PATCH] nix-unit: 2.24.1 -> 2.30.0 Diff: https://github.com/nix-community/nix-unit/compare/v2.24.1...v2.30.0 --- pkgs/by-name/ni/nix-unit/package.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ni/nix-unit/package.nix b/pkgs/by-name/ni/nix-unit/package.nix index 4b8659e0d75d..0ca2f0644bf1 100644 --- a/pkgs/by-name/ni/nix-unit/package.nix +++ b/pkgs/by-name/ni/nix-unit/package.nix @@ -13,24 +13,30 @@ pkg-config, fetchFromGitHub, }: - +let + # We pin the nix version to a known working one here as upgrades can likely break the build. + # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests + # On each update of nix unit we should re-evaluate what version we need. + nixComponents = nixVersions.nixComponents_2_30; +in stdenv.mkDerivation (finalAttrs: { pname = "nix-unit"; - version = "2.24.1"; + version = "2.30.0"; src = fetchFromGitHub { owner = "nix-community"; repo = "nix-unit"; rev = "v${finalAttrs.version}"; - hash = "sha256-PcT0jtv2QFaht5eSs1Vq4XGDqtMLdPC49ao9uwGYclE="; + hash = "sha256-yQ7HqzfrG7B6Sq1iGBI7QJsbkI/07Ccz42bqWJW4NJA="; }; buildInputs = [ + nixComponents.nix-main + nixComponents.nix-store + nixComponents.nix-expr + nixComponents.nix-cmd + nixComponents.nix-flake nlohmann_json - # We pin the nix version to a known working one here as upgrades can likely break the build. - # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests - # On each update of nix unit we should re-evaluate what version we need. - nixVersions.nix_2_24 boost ];