summary refs log tree commit diff
path: root/pkgs/applications/misc/semver/default.nix
blob: 5453467b9ef6d0e01a0bd349be66a18b37cd71d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildGoModule, fetchFromGitHub, git }:

buildGoModule rec {
  pname = "semver";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "catouc";
    repo = "semver-go";
    rev = "v${version}";
    sha256 = "0v3j7rw917wnmp4lyjscqzk4qf4azfiz70ynbq3wl4gwp1m783vv";
  };

  vendorSha256 = null;
  nativeBuildInputs = [ git ];

  meta = with lib; {
    homepage = "https://github.com/catouc/semver-go";
    description = "A small CLI to fish out the current or next semver version from a git repository";
    maintainers = with maintainers; [ catouc ];
    license = licenses.mit;
  };
}