nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub, git }:
2
3buildGoModule rec {
4 pname = "semver";
5 version = "1.0.0";
6
7 src = fetchFromGitHub {
8 owner = "catouc";
9 repo = "semver-go";
10 rev = "v${version}";
11 sha256 = "0v3j7rw917wnmp4lyjscqzk4qf4azfiz70ynbq3wl4gwp1m783vv";
12 };
13
14 vendorSha256 = null;
15 nativeBuildInputs = [ git ];
16
17 meta = with lib; {
18 homepage = "https://github.com/catouc/semver-go";
19 description = "A small CLI to fish out the current or next semver version from a git repository";
20 maintainers = with maintainers; [ catouc ];
21 license = licenses.mit;
22 };
23}