diff options
author | rushmorem <rushmore@webenchanter.com> | 2016-09-20 10:56:11 +0200 |
---|---|---|
committer | rushmorem <rushmore@webenchanter.com> | 2016-09-20 10:56:11 +0200 |
commit | 391ea6f7484733f8a3dc16d7ab2760e7cb11a144 (patch) | |
tree | dd0f222d088b6284e1b811cb137c9026b0eae696 | |
parent | 15935839b9dcee321de849d86b5e81822058af08 (diff) |
glock: init at 20160816
-rw-r--r-- | pkgs/development/tools/glock/default.nix | 24 | ||||
-rw-r--r-- | pkgs/development/tools/glock/deps.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/tools/glock/default.nix b/pkgs/development/tools/glock/default.nix new file mode 100644 index 0000000000000..98813f143cbbf --- /dev/null +++ b/pkgs/development/tools/glock/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "glock-${version}"; + version = "20160816-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "b8c84ff5ade15a6238ca61c20d3afc70d2e41276"; + + goPackagePath = "github.com/robfig/glock"; + + src = fetchFromGitHub { + inherit rev; + owner = "robfig"; + repo = "glock"; + sha256 = "10jwn3k71p340g8d43zjx7k1j534rcd7rss8pif09mpfrn9qndhh"; + }; + + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + homepage = https://github.com/robfig/glock; + description = "A command-line tool to lock Go dependencies to specific revisions"; + maintainers = [ maintainers.rushmorem ]; + }; +} diff --git a/pkgs/development/tools/glock/deps.nix b/pkgs/development/tools/glock/deps.nix new file mode 100644 index 0000000000000..b7392d757cfc7 --- /dev/null +++ b/pkgs/development/tools/glock/deps.nix @@ -0,0 +1,21 @@ +# This file was generated by go2nix. +[ + { + goPackagePath = "github.com/agtorre/gocolorize"; + fetch = { + type = "git"; + url = "https://github.com/agtorre/gocolorize"; + rev = "f42b554bf7f006936130c9bb4f971afd2d87f671"; + sha256 = "1dj7s8bgw9qky344d0k9gz661c0m317a08a590184drw7m51hy9p"; + }; + } + { + goPackagePath = "golang.org/x/tools"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/tools"; + rev = "f1a397bba50dee815e8c73f3ec94ffc0e8df1a09"; + sha256 = "1wy8nn2vg70n98g80i1zrk49129phyfbzxbicj748bmf82rnaxzg"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 90afe80dd931a..56efb953cbbdc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -847,6 +847,8 @@ in glide = callPackage ../development/tools/glide { }; + glock = callPackage ../development/tools/glock { }; + gmic = callPackage ../tools/graphics/gmic { }; goa = callPackage ../development/tools/goa { }; |