nix-unit; update
This commit is contained in:
@@ -1,43 +1,8 @@
|
|||||||
{ stdenv
|
{ callPackage }:
|
||||||
, lib
|
let
|
||||||
, nixVersions
|
nix-unit-src = builtins.fetchGit {
|
||||||
, fetchFromGitHub
|
url = "https://github.com/adisbladis/nix-unit";
|
||||||
, nlohmann_json
|
rev = "7e2ee1c70f930b9b65b9fc33c3f3eca0dfae00d1";
|
||||||
, boost
|
|
||||||
, meson
|
|
||||||
, pkg-config
|
|
||||||
, ninja
|
|
||||||
, cmake
|
|
||||||
, clang-tools
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "nix-unit";
|
|
||||||
version = "0.1";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "adisbladis";
|
|
||||||
repo = "nix-unit";
|
|
||||||
rev = "6389f27c0a13df001d790adfaa08ec4d971ba34a";
|
|
||||||
sha256 = "sha256-bwuiM+2sLrn+vvwW9fv/+s3oh0jN4y6gZV6Lx0pEEmM=";
|
|
||||||
};
|
};
|
||||||
buildInputs = [
|
in
|
||||||
nlohmann_json
|
callPackage nix-unit-src { }
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user