···13 pkg-config,
14 fetchFromGitHub,
15}:
16-0000017stdenv.mkDerivation (finalAttrs: {
18 pname = "nix-unit";
19- version = "2.24.1";
2021 src = fetchFromGitHub {
22 owner = "nix-community";
23 repo = "nix-unit";
24 rev = "v${finalAttrs.version}";
25- hash = "sha256-PcT0jtv2QFaht5eSs1Vq4XGDqtMLdPC49ao9uwGYclE=";
26 };
2728 buildInputs = [
0000029 nlohmann_json
30- # We pin the nix version to a known working one here as upgrades can likely break the build.
31- # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests
32- # On each update of nix unit we should re-evaluate what version we need.
33- nixVersions.nix_2_24
34 boost
35 ];
36
···13 pkg-config,
14 fetchFromGitHub,
15}:
16+let
17+ # We pin the nix version to a known working one here as upgrades can likely break the build.
18+ # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests
19+ # On each update of nix unit we should re-evaluate what version we need.
20+ nixComponents = nixVersions.nixComponents_2_30;
21+in
22stdenv.mkDerivation (finalAttrs: {
23 pname = "nix-unit";
24+ version = "2.30.0";
2526 src = fetchFromGitHub {
27 owner = "nix-community";
28 repo = "nix-unit";
29 rev = "v${finalAttrs.version}";
30+ hash = "sha256-yQ7HqzfrG7B6Sq1iGBI7QJsbkI/07Ccz42bqWJW4NJA=";
31 };
3233 buildInputs = [
34+ nixComponents.nix-main
35+ nixComponents.nix-store
36+ nixComponents.nix-expr
37+ nixComponents.nix-cmd
38+ nixComponents.nix-flake
39 nlohmann_json
000040 boost
41 ];
42