Merge pull request #268867 from maolonglong/init-gosimports

gosimports: init at 0.3.8
This commit is contained in:
Fabián Heredia Montiel 2023-11-22 06:10:59 +00:00 committed by GitHub
commit 9daa8e9de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View file

@ -11014,6 +11014,12 @@
githubId = 3507;
name = "Michael Fellinger";
};
maolonglong = {
email = "shaolong.chen@outlook.it";
github = "maolonglong";
githubId = 50797868;
name = "Shaolong Chen";
};
maralorn = {
email = "mail@maralorn.de";
matrix = "@maralorn:maralorn.de";

View file

@ -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";
};
}