Revert "nix-unit; update"
All checks were successful
checks-impure / test (pull_request) Successful in 1m43s
checks / test (pull_request) Successful in 2m10s

This reverts commit bd7899e48a.
This commit is contained in:
Jörg Thalheim 2023-11-21 13:56:27 +01:00
parent c901133a81
commit 90ff10eac1

View File

@ -1,8 +1,43 @@
{ callPackage }:
let
nix-unit-src = builtins.fetchGit {
url = "https://github.com/adisbladis/nix-unit";
{ stdenv
, lib
, nixVersions
, fetchFromGitHub
, nlohmann_json
, boost
, meson
, pkg-config
, ninja
, cmake
, clang-tools
}:
stdenv.mkDerivation {
pname = "nix-unit";
version = "0.1";
src = fetchFromGitHub {
owner = "adisbladis";
repo = "nix-unit";
rev = "7e2ee1c70f930b9b65b9fc33c3f3eca0dfae00d1";
sha256 = "sha256-UaUkh+/lxzNCRH64YB6SbyRIvvDhgY98izX9CvWgJA4=";
};
in
callPackage nix-unit-src { }
buildInputs = [
nlohmann_json
nixVersions.stable
boost
];
nativeBuildInputs = [
meson
pkg-config
ninja
# nlohmann_json can be only discovered via cmake files
cmake
] ++ (lib.optional stdenv.cc.isClang [ clang-tools ]);
meta = {
description = "Nix unit test runner";
homepage = "https://github.com/adisbladis/nix-unit";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ adisbladis ];
platforms = lib.platforms.unix;
};
}