a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
31 lines
615 B
Nix
31 lines
615 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "semver-cpp";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Neargye";
|
|
repo = "semver";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nRWmY/GJtSkPJIW7i7/eIr/YtfyvYhJVZBRIDXUC7xg=";
|
|
};
|
|
|
|
# Header-only library.
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir "$out"
|
|
cp -r include "$out"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Semantic Versioning for modern C++";
|
|
homepage = "https://github.com/Neargye/semver";
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|