mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
svu: init at 1.10.2 (#223393)
This commit is contained in:
parent
9bfc59d891
commit
ad103077d9
2 changed files with 33 additions and 0 deletions
31
pkgs/tools/misc/svu/default.nix
Normal file
31
pkgs/tools/misc/svu/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, testers, svu }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "svu";
|
||||
version = "1.10.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "caarlos0";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "37AT+ygN7u3KfFqr26M9c7aTt15z8m4PBrSd+G5mJcE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-+e1oL08KvBSNaRepGR2SBBrEDJaGxl5V9rOBysGEfQs=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X=main.version=${version}" "-X=main.builtBy=nixpkgs" ];
|
||||
|
||||
# test assumes source directory to be a git repository
|
||||
postPatch = ''
|
||||
rm internal/git/git_test.go
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion { package = svu; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Semantic Version Util";
|
||||
homepage = "https://github.com/caarlos0/svu";
|
||||
maintainers = with maintainers; [ caarlos0 ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -12426,6 +12426,8 @@ with pkgs;
|
|||
|
||||
svgcleaner = callPackage ../tools/graphics/svgcleaner { };
|
||||
|
||||
svu = callPackage ../tools/misc/svu { };
|
||||
|
||||
ssb = callPackage ../tools/security/ssb { };
|
||||
|
||||
ssb-patchwork = callPackage ../applications/networking/ssb-patchwork { };
|
||||
|
|
Loading…
Reference in a new issue