depot/third_party/nixpkgs/pkgs/by-name/mi/mingtest/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

34 lines
745 B
Nix

{
stdenv,
cmake,
fetchFromGitHub,
lib,
}:
stdenv.mkDerivation rec {
name = "mingtest";
version = "0.1.9";
src = fetchFromGitHub {
owner = "craflin";
repo = "mingtest";
rev = "refs/tags/${version}";
hash = "sha256-Iy2KvFCFk+uoztTVxTY7HMdc5GI4gSGqGmbJePJ5CO8=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "include(CDeploy)" "" \
--replace-fail "install_deploy_export()" ""
'';
nativeBuildInputs = [ cmake ];
meta = {
description = "Minimalistic C++ unit test framework";
homepage = "https://github.com/craflin/mingtest";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lutzberger ];
platforms = lib.platforms.linux;
};
}