about summary refs log tree commit diff
path: root/pkgs/tools/text/gucci
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-04-06 14:43:09 +0000
committerAaron Jheng <wentworth@outlook.com>2022-04-27 06:47:43 +0000
commit209c579d7fc51406f7a06fac39923254dcdc3a9f (patch)
treee99a285d22960a0ea17b5e0d5930353cf44ba08f /pkgs/tools/text/gucci
parent258637b9699e4316345f812050d6d64ef52051b1 (diff)
downloadnixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.tar
nixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.tar.gz
nixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.tar.bz2
nixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.tar.lz
nixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.tar.xz
nixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.tar.zst
nixlib-209c579d7fc51406f7a06fac39923254dcdc3a9f.zip
gucci: 0.1.0 -> 1.5.4
Diffstat (limited to 'pkgs/tools/text/gucci')
-rw-r--r--pkgs/tools/text/gucci/default.nix26
-rw-r--r--pkgs/tools/text/gucci/deps.nix30
2 files changed, 14 insertions, 42 deletions
diff --git a/pkgs/tools/text/gucci/default.nix b/pkgs/tools/text/gucci/default.nix
index c937e6c7ab16..3e87b7cb79c1 100644
--- a/pkgs/tools/text/gucci/default.nix
+++ b/pkgs/tools/text/gucci/default.nix
@@ -1,29 +1,31 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
 
-buildGoPackage rec {
+buildGoModule rec {
   pname = "gucci";
-  version = "0.1.0";
-
-  goPackagePath = "github.com/noqcks/gucci";
+  version = "1.5.4";
 
   src = fetchFromGitHub {
     owner = "noqcks";
     repo = "gucci";
-    rev = version;
-    sha256 = "0ksrmzb3iggc7gm51fl0jbb15d0gmpclslpkq2sl2xjzk29pkllq";
+    rev = "refs/tags/${version}";
+    sha256 = "sha256-HJPNpLRJPnziSMvxLCiNDeCWO439ELSZs/4Cq1a7Amo=";
   };
 
-  goDeps = ./deps.nix;
+  vendorSha256 = "sha256-rAZCj5xtwTgd9/KDYnQTU1jbabtWJF5MCFgcmixDN/Q=";
+
+  ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" ];
+
+  passthru.tests.version = testers.testVersion {
+    package = gucci;
+  };
 
-  ldflags = [
-    "-X main.AppVersion=${version}"
-  ];
+  checkFlags = [ "-short" ];
 
   meta = with lib; {
     description = "A simple CLI templating tool written in golang";
     homepage = "https://github.com/noqcks/gucci";
     license = licenses.mit;
-    maintainers = [ maintainers.braydenjw ];
+    maintainers = with maintainers; [ braydenjw ];
     platforms = platforms.unix;
   };
 }
diff --git a/pkgs/tools/text/gucci/deps.nix b/pkgs/tools/text/gucci/deps.nix
deleted file mode 100644
index 8e2cc5af3bf1..000000000000
--- a/pkgs/tools/text/gucci/deps.nix
+++ /dev/null
@@ -1,30 +0,0 @@
-[
-  {
-    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";
-    };
-  }
-]
-