···1313 pkg-config,
1414 fetchFromGitHub,
1515}:
1616-1616+let
1717+ # We pin the nix version to a known working one here as upgrades can likely break the build.
1818+ # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests
1919+ # On each update of nix unit we should re-evaluate what version we need.
2020+ nixComponents = nixVersions.nixComponents_2_30;
2121+in
1722stdenv.mkDerivation (finalAttrs: {
1823 pname = "nix-unit";
1919- version = "2.24.1";
2424+ version = "2.30.0";
20252126 src = fetchFromGitHub {
2227 owner = "nix-community";
2328 repo = "nix-unit";
2429 rev = "v${finalAttrs.version}";
2525- hash = "sha256-PcT0jtv2QFaht5eSs1Vq4XGDqtMLdPC49ao9uwGYclE=";
3030+ hash = "sha256-yQ7HqzfrG7B6Sq1iGBI7QJsbkI/07Ccz42bqWJW4NJA=";
2631 };
27322833 buildInputs = [
3434+ nixComponents.nix-main
3535+ nixComponents.nix-store
3636+ nixComponents.nix-expr
3737+ nixComponents.nix-cmd
3838+ nixComponents.nix-flake
2939 nlohmann_json
3030- # We pin the nix version to a known working one here as upgrades can likely break the build.
3131- # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests
3232- # On each update of nix unit we should re-evaluate what version we need.
3333- nixVersions.nix_2_24
3440 boost
3541 ];
3642