goimports: extracted from goPackages
This commit is contained in:
parent
3cf803fca7
commit
7c8852e355
2 changed files with 20 additions and 1 deletions
19
pkgs/development/tools/goimports/default.nix
Normal file
19
pkgs/development/tools/goimports/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
# This file was generated by go2nix.
|
||||
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
with goPackages;
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "goimports-${version}";
|
||||
version = "20160519-${stdenv.lib.strings.substring 0 7 rev}";
|
||||
rev = "9ae4729fba20b3533d829a9c6ba8195b068f2abc";
|
||||
|
||||
goPackagePath = "golang.org/x/tools";
|
||||
subPackages = [ "cmd/goimports" ];
|
||||
|
||||
src = fetchgit {
|
||||
inherit rev;
|
||||
url = "https://go.googlesource.com/tools";
|
||||
sha256 = "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1";
|
||||
};
|
||||
}
|
|
@ -11163,7 +11163,7 @@ in
|
|||
|
||||
godep = callPackage ../development/tools/godep { };
|
||||
|
||||
goimports = goPackages.tools.bin // { outputs = [ "bin" ]; };
|
||||
goimports = callPackage ../development/tools/goimports { };
|
||||
|
||||
gogoclient = callPackage ../os-specific/linux/gogoclient { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue