yq-go: init at 2.4.0
This commit is contained in:
parent
f096e5a46d
commit
984acf8004
31
pkgs/development/tools/yq-go/default.nix
Normal file
31
pkgs/development/tools/yq-go/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
# buildGoModule is not supported by the project
|
||||
# See https://github.com/mikefarah/yq/issues/227
|
||||
buildGoPackage rec {
|
||||
pname = "yq-go";
|
||||
version = "2.4.0";
|
||||
|
||||
goPackagePath = "gopkg.in/mikefarah/yq.v2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mikefarah";
|
||||
rev = version;
|
||||
repo = "yq";
|
||||
sha256 = "0nizg08mdpb8g6hj887kk5chljba6x9v0f5ysqf28py511yp0dym";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
postInstall = ''
|
||||
mv $bin/bin/yq.v2 $bin/bin/yq
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Portable command-line YAML processor";
|
||||
homepage = http://mikefarah.github.io/yq/;
|
||||
license = [ licenses.mit ];
|
||||
maintainers = [ maintainers.lewo ];
|
||||
};
|
||||
}
|
57
pkgs/development/tools/yq-go/deps.nix
generated
Normal file
57
pkgs/development/tools/yq-go/deps.nix
generated
Normal file
@ -0,0 +1,57 @@
|
||||
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
|
||||
[
|
||||
{
|
||||
goPackagePath = "github.com/pkg/errors";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/pkg/errors";
|
||||
rev = "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7";
|
||||
sha256 = "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/spf13/pflag";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/spf13/pflag";
|
||||
rev = "972238283c0625cf3e881de7699ba8f2524c340a";
|
||||
sha256 = "194h0lq3s27wcxcgahjl350x46v116x81zgkgh98q9v5iydig28l";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "gopkg.in/imdario/mergo.v0";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/imdario/mergo.v0";
|
||||
rev = "7c29201646fa3de8506f701213473dd407f19646";
|
||||
sha256 = "05ir0jj74w0yfi1lrhjd97v759in1dpsma64cgmbiqvyp6hfmmf8";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "gopkg.in/mikefarah/yaml.v2";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/mikefarah/yaml.v2";
|
||||
rev = "1a71b09ff830e9b158685a8657c85f6462559726";
|
||||
sha256 = "0rvix49in3bm3i90v1dp1s49b14m1pyyqm3fv27mgg0spvcqy7vr";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "gopkg.in/op/go-logging.v1";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/op/go-logging.v1";
|
||||
rev = "b2cb9fa56473e98db8caba80237377e83fe44db5";
|
||||
sha256 = "01a6lkpj5p82gplddh55az194s9y3014p4j8x4zc8yv886z9c8gn";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "gopkg.in/spf13/cobra.v0";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/spf13/cobra.v0";
|
||||
rev = "f2b07da1e2c38d5f12845a4f607e2e1018cbb1f5";
|
||||
sha256 = "0z4x8js65mhwg1gf6sa865pdxfgn45c3av9xlcc1l3xjvcnx32v2";
|
||||
};
|
||||
}
|
||||
]
|
@ -10118,6 +10118,8 @@ in
|
||||
inherit (python3Packages) buildPythonApplication fetchPypi pyyaml xmltodict;
|
||||
};
|
||||
|
||||
yq-go = callPackage ../development/tools/yq-go { };
|
||||
|
||||
winpdb = callPackage ../development/tools/winpdb { };
|
||||
|
||||
grabserial = callPackage ../development/tools/grabserial { };
|
||||
|
Loading…
Reference in New Issue
Block a user