depot/third_party/nixpkgs/pkgs/by-name/cm/cmakerc/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
702 B
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cmrc";
version = "2.0.1";
src = fetchFromGitHub {
owner = "vector-of-bool";
repo = "cmrc";
rev = finalAttrs.version;
hash = "sha256-++16WAs2K9BKk8384yaSI/YD1CdtdyXVBIjGhqi4JIk=";
};
installPhase = ''
runHook preInstall
install CMakeRC.cmake -DT $out/share/cmakerc/cmakerc-config.cmake
runHook postInstall
'';
meta = {
description = "Resource Compiler in a Single CMake Script";
homepage = "https://github.com/vector-of-bool/cmrc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ guekka ];
platforms = lib.platforms.all;
};
})