diff options
author | Fabián Heredia Montiel <303897+fabianhjr@users.noreply.github.com> | 2023-11-22 06:10:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 06:10:59 +0000 |
commit | 9daa8e9de4f064b34f0b2ee1d076db53a705a983 (patch) | |
tree | 46108c79642103505245121960ee3d15fed09817 /pkgs/by-name | |
parent | 0770fe731d95d3323be3f245ab7e4b208c057666 (diff) | |
parent | ea8fa29ac107ae9ddf5bca428c43a2e4fb361bda (diff) |
Merge pull request #268867 from maolonglong/init-gosimports
gosimports: init at 0.3.8
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/go/gosimports/package.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/go/gosimports/package.nix b/pkgs/by-name/go/gosimports/package.nix new file mode 100644 index 0000000000000..c47446d1a7a6f --- /dev/null +++ b/pkgs/by-name/go/gosimports/package.nix @@ -0,0 +1,34 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "gosimports"; + version = "0.3.8"; + + src = fetchFromGitHub { + owner = "rinchsan"; + repo = "gosimports"; + rev = "v${version}"; + hash = "sha256-xM1CGW8UB+VHN+2Rm6cF/1bOBVDeUG+6kxUxUcvP7FM="; + }; + + vendorHash = "sha256-xR1YTwUcJcpe4NXH8sp9bNAWggvcvVJLztD49gQIdMU="; + + subPackages = [ "cmd/gosimports" ]; + + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + ]; + + meta = with lib; { + homepage = "https://github.com/rinchsan/gosimports"; + description = "Simpler goimports"; + license = licenses.bsd3; + maintainers = with maintainers; [ maolonglong ]; + mainProgram = "gosimports"; + }; +} |