mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
c3f2886c79
* semver-tool: 3.2.0 -> 3.3.0 (#159745) Relicensed to Apache License 2.0 as of v3.3.0 Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
33 lines
710 B
Nix
33 lines
710 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "semver-tool";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fsaintjacques";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-LqZTHFiis4BYL1bnJoeuW56wf8+o38Ygs++CV9CKNhM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|