commit edca8911e2534998e65a7b132cf23f03e4ce099d
parent 1102cbb95c7e89835cab59a3cb4fe9e0d90c5eb4
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 26 Sep 2018 10:08:21 +0200
dev.go: package and add dep-collector
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
5 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/dev.go.nix b/dev.go.nix
@@ -26,6 +26,7 @@
# vendoring tools
vndr
dep
+ dep-collector
# misc
protobuf
protobuild
diff --git a/overlays/sbr.nix b/overlays/sbr.nix
@@ -6,6 +6,9 @@ self: super:
dobi = import ../pkgs/dobi {
inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
};
+ dep-collector = import ../pkgs/dep-collector {
+ inherit (self) stdenv lib fetchgit buildGoPackage;
+ };
protobuild = import ../pkgs/protobuild {
inherit (self) stdenv lib buildGoPackage fetchgit;
};
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -9,6 +9,9 @@ in rec {
dobi = import ./dobi {
inherit (pkgs) stdenv lib fetchFromGitHub buildGoPackage;
};
+ dep-collector = import ./dep-collector {
+ inherit (pkgs) stdenv lib fetchgit buildGoPackage;
+ };
protobuild = import ./protobuild {
inherit (pkgs) stdenv lib buildGoPackage fetchgit;
};
diff --git a/pkgs/dep-collector/default.nix b/pkgs/dep-collector/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, lib, buildGoPackage, fetchgit }:
+
+buildGoPackage rec {
+ name = "dep-collector-unstable-${version}";
+ version = "2018-07-20";
+ rev = "ea0470924d0dd9363ffae8936f88a22d28551685";
+
+ goPackagePath = "github.com/mattmoor/dep-collector";
+
+ src = fetchgit {
+ inherit rev;
+ url = "https://github.com/mattmoor/dep-collector";
+ sha256 = "08q6rpvrwlyfci41hvasq24r2cwbp4cyd3885va3irjcb1xlaz93";
+ };
+
+ goDeps = ./deps.nix;
+
+ meta = {
+ description = "Gathers the set of licenses for Go imports pulled in via dep.";
+ homepage = https://github.com/mattmoor/dep-collector;
+ license = lib.licenses.asl20;
+ };
+}
diff --git a/pkgs/dep-collector/deps.nix b/pkgs/dep-collector/deps.nix
@@ -0,0 +1,21 @@
+# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
+[
+ {
+ goPackagePath = "github.com/google/licenseclassifier";
+ fetch = {
+ type = "git";
+ url = "https://github.com/google/licenseclassifier";
+ rev = "3c8ad1f0b0644b6646210ee9cf2f34ff907e2e18";
+ sha256 = "0ndfsqn2qx8vhgdwkw70dj0y4sj45rifs3865lqx36gxknns6jpw";
+ };
+ }
+ {
+ goPackagePath = "github.com/sergi/go-diff";
+ fetch = {
+ type = "git";
+ url = "https://github.com/sergi/go-diff";
+ rev = "1744e2970ca51c86172c8190fadad617561ed6e7";
+ sha256 = "0swiazj8wphs2zmk1qgq75xza6m19snif94h2m6fi8dqkwqdl7c7";
+ };
+ }
+]+
\ No newline at end of file