mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
goimports-reviser: init at 3.3.1
This commit is contained in:
parent
2b9b52d193
commit
e2d13e9af2
45
pkgs/development/tools/goimports-reviser/default.nix
Normal file
45
pkgs/development/tools/goimports-reviser/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "goimports-reviser";
|
||||
version = "3.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "incu6us";
|
||||
repo = "goimports-reviser";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-JIXBC7fk/Bd3tTHiK+qtB+5CdAATaB/j1nvKOJrz4n4=";
|
||||
};
|
||||
vendorHash = "sha256-lyV4HlpzzxYC6OZPGVdNVL2mvTFE9yHO37zZdB/ePBg=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main.Tag=${src.rev}"
|
||||
];
|
||||
|
||||
checkFlags = [
|
||||
"-skip=TestSourceFile_Fix_WithAliasForVersionSuffix/success_with_set_alias"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# unset to run all tests
|
||||
unset subPackages
|
||||
# unset as some tests require cgo
|
||||
unset CGO_ENABLED
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Right imports sorting & code formatting tool (goimports alternative)";
|
||||
homepage = "https://github.com/incu6us/goimports-reviser";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jk ];
|
||||
};
|
||||
}
|
@ -28095,6 +28095,8 @@ with pkgs;
|
||||
|
||||
godef = callPackage ../development/tools/godef { };
|
||||
|
||||
goimports-reviser = callPackage ../development/tools/goimports-reviser { };
|
||||
|
||||
gopkgs = callPackage ../development/tools/gopkgs { };
|
||||
|
||||
gosec = callPackage ../development/tools/gosec { };
|
||||
|
Loading…
Reference in New Issue
Block a user