summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/gucci
diff options
context:
space:
mode:
authorBrayden Willenborg <braydenjw@users.noreply.github.com>2018-11-07 03:21:55 -0600
committerSarah Brofeldt <sbrofeldt@gmail.com>2018-11-07 10:21:55 +0100
commite11c3a08b0dc1671d1586e35360cd765be7c8551 (patch)
treef8a125c9a60148e0dcf5bb5960c147806852ec14 /pkgs/tools/text/gucci
parent5fc73fd52e7e9aa56911d152e3a5c49de8a18f61 (diff)
gucci: init at 0.1.0 (#49813)
* gucci: init at 0.1.0 * gucci: init at 0.1.0
Diffstat (limited to 'pkgs/tools/text/gucci')
-rw-r--r--pkgs/tools/text/gucci/default.nix30
-rw-r--r--pkgs/tools/text/gucci/deps.nix30
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/tools/text/gucci/default.nix b/pkgs/tools/text/gucci/default.nix
new file mode 100644
index 000000000000..a04a2c65e7c3
--- /dev/null
+++ b/pkgs/tools/text/gucci/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+ name = "gucci-${version}";
+ version = "0.1.0";
+
+ goPackagePath = "github.com/noqcks/gucci";
+
+ src = fetchFromGitHub {
+ owner = "noqcks";
+ repo = "gucci";
+ rev = version;
+ sha256 = "0ksrmzb3iggc7gm51fl0jbb15d0gmpclslpkq2sl2xjzk29pkllq";
+ };
+
+ goDeps = ./deps.nix;
+
+ buildFlagsArray = ''
+ -ldflags=-X main.AppVersion=${version}
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A simple CLI templating tool written in golang";
+ homepage = https://github.com/noqcks/gucci;
+ license = licenses.mit;
+ maintainers = [ maintainers.braydenjw ];
+ platforms = platforms.unix;
+ };
+}
+
diff --git a/pkgs/tools/text/gucci/deps.nix b/pkgs/tools/text/gucci/deps.nix
new file mode 100644
index 000000000000..8e2cc5af3bf1
--- /dev/null
+++ b/pkgs/tools/text/gucci/deps.nix
@@ -0,0 +1,30 @@
+[
+ {
+ goPackagePath = "gopkg.in/yaml.v2";
+ fetch = {
+ type = "git";
+ url = "https://gopkg.in/yaml.v2";
+ rev = "5420a8b6744d3b0345ab293f6fcba19c978f1183";
+ sha256 = "0dwjrs2lp2gdlscs7bsrmyc5yf6mm4fvgw71bzr9mv2qrd2q73s1";
+ };
+ }
+ {
+ goPackagePath = "github.com/imdario/mergo";
+ fetch = {
+ type = "git";
+ url = "https://github.com/imdario/mergo";
+ rev = "v0.3.6";
+ sha256 = "1lbzy8p8wv439sqgf0n21q52flf2wbamp6qa1jkyv6an0nc952q7";
+ };
+ }
+ {
+ goPackagePath = "github.com/urfave/cli";
+ fetch = {
+ type = "git";
+ url = "https://github.com/urfave/cli";
+ rev = "v1.20.0";
+ sha256 = "0y6f4sbzkiiwrxbl15biivj8c7qwxnvm3zl2dd3mw4wzg4x10ygj";
+ };
+ }
+]
+