Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 33 lines 738 B view raw
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "semver-tool"; 5 version = "3.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "fsaintjacques"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-BnHuiCxE0VjzMWFTEMunQ9mkebQKIKbbMxZVfBUO57Y="; 12 }; 13 14 dontBuild = true; # otherwise we try to 'make' which fails. 15 16 installPhase = '' 17 runHook preInstall 18 19 mkdir -p $out/bin 20 install src/semver $out/bin 21 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/fsaintjacques/semver-tool"; 27 description = "semver bash implementation"; 28 license = licenses.asl20; 29 platforms = platforms.unix; 30 maintainers = [ maintainers.qyliss ]; 31 mainProgram = "semver"; 32 }; 33}