summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2023-06-23 01:26:06 +0000
committerAaron Jheng <wentworth@outlook.com>2023-06-23 01:26:06 +0000
commitd451f8512feaccd1e5a1282060e0b58fe11d6f04 (patch)
treeb4416927f54bd95569265cbe378e28f804a691ac /pkgs
parente999e93d55c6298d151159c9e5ca4e773ff29d1f (diff)
downloadnixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.tar
nixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.tar.gz
nixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.tar.bz2
nixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.tar.lz
nixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.tar.xz
nixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.tar.zst
nixpkgs-d451f8512feaccd1e5a1282060e0b58fe11d6f04.zip
yaml2json: 1.3 -> 1.3.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/yaml2json/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/tools/yaml2json/default.nix b/pkgs/development/tools/yaml2json/default.nix
index 543ed7fc3ea..09476976ecd 100644
--- a/pkgs/development/tools/yaml2json/default.nix
+++ b/pkgs/development/tools/yaml2json/default.nix
@@ -1,18 +1,22 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
-
-buildGoPackage rec {
+buildGoModule rec {
   pname = "yaml2json";
-  version = "1.3";
-  goPackagePath = "github.com/bronze1man/yaml2json";
+  version = "1.3.2";
 
   src = fetchFromGitHub {
     owner = "bronze1man";
     repo = "yaml2json";
     rev = "v${version}";
-    sha256 = "0bhjzl4qibiyvn56wcsm85f3vwnlzf4gywy2gq9mrnbrl629amq1";
+    hash = "sha256-yVA5eV+/TxWN3wzsHy5++IGMAopkCz+PBfjSD+TNKc8=";
   };
 
+  vendorHash = "sha256-g+yaVIx4jxpAQ/+WrGKxhVeliYx7nLQe/zsGpxV4Fn4=";
+
+  subPackages = [ "." ];
+
+  ldflags = [ "-s" "-w" ];
+
   meta = with lib; {
     homepage = "https://github.com/bronze1man/yaml2json";
     description = "Convert yaml to json";