mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
32 lines
615 B
Nix
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;
|
|
};
|
|
}
|