nixpkgs/pkgs/development/libraries/semver-cpp/default.nix
2022-11-19 08:42:03 +13:00

32 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;
};
}