nix-overlay/pkgs/openhexagon/ssvjsoncpp.nix

27 lines
560 B
Nix
Raw Permalink Normal View History

2021-01-06 23:55:24 +01:00
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "SSVJsonCpp";
version = "2013.06.14";
src = fetchFromGitHub {
owner = "SuperV1234";
repo = pname;
rev = "cdae6add9a7181d29d44375909336079c549824e";
sha256 = "0csysjddp2ifi535n8h5gd8agf2jsvqkjkvvad7ihbp7hkq4ihsg";
};
patches = [
./SSVJsonCpp-install-include-not-src.patch
];
postInstall = ''
mkdir -p $out/share/cmake/modules
cp ${src}/cmake/modules/FindSSVJsonCpp.cmake $out/share/cmake/modules
'';
nativeBuildInputs = [
cmake
];
}