diff options
Diffstat (limited to 'pkgs/development/tools/yj/default.nix')
-rw-r--r-- | pkgs/development/tools/yj/default.nix | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/pkgs/development/tools/yj/default.nix b/pkgs/development/tools/yj/default.nix index 94237abf89b..303f325dec1 100644 --- a/pkgs/development/tools/yj/default.nix +++ b/pkgs/development/tools/yj/default.nix @@ -1,27 +1,24 @@ -# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 -{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "yj"; - version = "4.0.0"; - rev = "d9a48607cc5c812e8cf4abccc8ad26f37ab51558"; + version = "5.0.0"; - goPackagePath = "github.com/sclevine/yj"; - - src = fetchgit { - inherit rev; - url = "https://github.com/sclevine/yj"; - sha256 = "04irphzs6hp9hvyski29ad29ga1kis3h8bw7jqvmy2c2rkrrsh7x"; + src = fetchFromGitHub { + owner = "sclevine"; + repo = "yj"; + rev = "c4c13b7641389c76ea028b48091f851f3efb6376"; + sha256 = "0bnb88wfm2vagh4yb1h9xhp3045ga0b6a77n3j2z5b4mvwshx5dr"; }; - goDeps = ./deps.nix; + vendorSha256 = "0y0n9fsb85qlpf9slwsxzarmfi98asa4x04qp2r8pagl28l0i8wv"; + + buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ]; - meta = with stdenv.lib; { - description = ''Convert YAML <=> TOML <=> JSON <=> HCL''; + meta = with lib; { + description = "Convert YAML <=> TOML <=> JSON <=> HCL"; license = licenses.asl20; maintainers = with maintainers; [ Profpatsch ]; - downloadPage = "https://github.com/sclevine/yj"; - updateWalker = true; - inherit version; + homepage = "https://github.com/sclevine/yj"; }; } |