16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
21 owner = "nix-community";
23 rev = "v${finalAttrs.version}";
24 hash = "sha256-PcT0jtv2QFaht5eSs1Vq4XGDqtMLdPC49ao9uwGYclE=";
29 # We pin the nix version to a known working one here as upgrades can likely break the build.
30 # Since the nix language is rather stable we don't always need to have the latest and greatest for unit tests
31 # On each update of nix unit we should re-evaluate what version we need.
41 # nlohmann_json can be only discovered via cmake files
43 ] ++ lib.optional stdenv.cc.isClang [ clang-tools ];
46 wrapProgram "$out/bin/nix-unit" --prefix PATH : ${difftastic}/bin
50 description = "Nix unit test runner";
51 homepage = "https://github.com/nix-community/nix-unit";
52 license = lib.licenses.gpl3;
53 maintainers = with lib.maintainers; [ mic92 adisbladis ];
54 platforms = lib.platforms.unix;
55 mainProgram = "nix-unit";