2022-11-21 17:40:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, git }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "semver";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "catouc";
|
|
|
|
repo = "semver-go";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0v3j7rw917wnmp4lyjscqzk4qf4azfiz70ynbq3wl4gwp1m783vv";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [ git ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/catouc/semver-go";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Small CLI to fish out the current or next semver version from a git repository";
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ catouc ];
|
|
|
|
license = licenses.mit;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "semver";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
}
|