mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
29 lines
739 B
Nix
29 lines
739 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "awsrm";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jckuester";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-KAujqYDtZbCBRO5WK9b9mxqe84ZllbBoO2tLnDH/bdo=";
|
|
};
|
|
|
|
vendorHash = "sha256-CldEAeiFH7gdFNLbIe/oTzs8Pdnde7EqLr7vP7SMDGU=";
|
|
|
|
ldflags =
|
|
let t = "github.com/jckuester/awsrm/internal";
|
|
in [ "-s" "-w" "-X ${t}.version=${version}" "-X ${t}.commit=${src.rev}" "-X ${t}.date=unknown" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A remove command for AWS resources";
|
|
homepage = "https://github.com/jckuester/awsrm";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.markus1189 ];
|
|
};
|
|
}
|