depot/third_party/nixpkgs/pkgs/development/tools/misc/semver-tool/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

33 lines
738 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "semver-tool";
version = "3.4.0";
src = fetchFromGitHub {
owner = "fsaintjacques";
repo = pname;
rev = version;
sha256 = "sha256-BnHuiCxE0VjzMWFTEMunQ9mkebQKIKbbMxZVfBUO57Y=";
};
dontBuild = true; # otherwise we try to 'make' which fails.
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install src/semver $out/bin
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/fsaintjacques/semver-tool";
description = "semver bash implementation";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = [ maintainers.qyliss ];
mainProgram = "semver";
};
}