diff --git a/pkgs/development/tools/goimports/default.nix b/pkgs/development/tools/goimports/default.nix new file mode 100644 index 000000000000..bcc82e80cbfa --- /dev/null +++ b/pkgs/development/tools/goimports/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a8fdf35ae079..52d00e5a1341 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };