Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenvNoCC 3, fetchFromGitHub 4}: 5 6stdenvNoCC.mkDerivation rec { 7 pname = "semver-cpp"; 8 version = "0.3.0"; 9 10 src = fetchFromGitHub { 11 owner = "Neargye"; 12 repo = "semver"; 13 rev = "v${version}"; 14 sha256 = "sha256-nRWmY/GJtSkPJIW7i7/eIr/YtfyvYhJVZBRIDXUC7xg="; 15 }; 16 17 # Header-only library. 18 dontBuild = true; 19 20 installPhase = '' 21 mkdir "$out" 22 cp -r include "$out" 23 ''; 24 25 meta = with lib; { 26 description = "Semantic Versioning for modern C++"; 27 homepage = "https://github.com/Neargye/semver"; 28 maintainers = with maintainers; [ aidalgol ]; 29 license = licenses.mit; 30 }; 31}