1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/yq-go/default.nix

32 lines
780 B
Nix
Raw Normal View History

2019-08-23 11:26:08 +01:00
# 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";
2020-02-07 03:34:49 +00:00
version = "3.1.0";
2019-08-23 11:26:08 +01:00
2020-02-07 03:34:49 +00:00
goPackagePath = "github.com/mikefarah/yq/v3";
2019-08-23 11:26:08 +01:00
src = fetchFromGitHub {
owner = "mikefarah";
rev = version;
repo = "yq";
2020-02-07 03:34:49 +00:00
sha256 = "0hsb9m0pq2agsg7392r6h9sv5vqa2r7fl0ff1q24vpx8jlpq1vc6";
2019-08-23 11:26:08 +01:00
};
goDeps = ./deps.nix;
postInstall = ''
2020-02-07 03:34:49 +00:00
mv $bin/bin/v3 $bin/bin/yq
2019-08-23 11:26:08 +01:00
'';
meta = with stdenv.lib; {
description = "Portable command-line YAML processor";
homepage = http://mikefarah.github.io/yq/;
license = [ licenses.mit ];
maintainers = [ maintainers.lewo ];
};
}