mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
25 lines
565 B
Nix
25 lines
565 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "json2hcl";
|
|
version = "0.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit owner;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0knil88n2w41w3nzqz6ljgfjkl5r3x0bh7ifqgiyf6sin3pl4pn0";
|
|
};
|
|
|
|
owner = "kvz";
|
|
goPackagePath = "github.com/${owner}/${pname}";
|
|
goDeps = ./deps.nix;
|
|
|
|
meta = with lib; {
|
|
description = "Convert JSON to HCL, and vice versa";
|
|
license = with licenses; [ mit ];
|
|
maintainers = [ maintainers.matthewbauer ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|