From 7c8852e3559f411d62c18ecdc3ac9897cb3831d9 Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Sat, 4 Jun 2016 14:50:09 +0200 Subject: [PATCH] goimports: extracted from goPackages --- pkgs/development/tools/goimports/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/tools/goimports/default.nix 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 { };