From 33bcb49957ec03319d7c4e17b15fc34705703258 Mon Sep 17 00:00:00 2001 From: Lutz Berger Date: Wed, 17 Jul 2024 07:11:00 +0200 Subject: [PATCH] mingtest: init at 0.1.9 --- pkgs/by-name/mi/mingtest/package.nix | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/mi/mingtest/package.nix diff --git a/pkgs/by-name/mi/mingtest/package.nix b/pkgs/by-name/mi/mingtest/package.nix new file mode 100644 index 000000000000..78ea3d7b995c --- /dev/null +++ b/pkgs/by-name/mi/mingtest/package.nix @@ -0,0 +1,34 @@ +{ + 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; + }; + +}