summary refs log blame commit diff
path: root/pkgs/development/libraries/semver-cpp/default.nix
blob: 966f170eaad07abb9b4b1a08ddb86d55e0c56b08 (plain) (tree)






























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