Skip to content

Commit

Permalink
yaml2json: init at unstable-2017-05-03
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Feb 9, 2018
1 parent 7ca0842 commit d1c5b48
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkgs/development/tools/yaml2json/default.nix
@@ -0,0 +1,24 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:


buildGoPackage rec {
name = "yaml2json-${version}";
version = "unstable-2017-05-03";
goPackagePath = "github.com/bronze1man/yaml2json";

goDeps = ./deps.nix;

src = fetchFromGitHub {
rev = "ee8196e587313e98831c040c26262693d48c1a0c";
owner = "bronze1man";
repo = "yaml2json";
sha256 = "16a2sqzbam5adbhfvilnpdabzwncs7kgpr0cn4gp09h2imzsprzw";
};

meta = with stdenv.lib; {
homepage = https://github.com/bronze1man/yaml2json;
description = "Convert yaml to json";
license = with licenses; [ mit ];
maintainers = [ maintainers.adisbladis ];
};
}
11 changes: 11 additions & 0 deletions pkgs/development/tools/yaml2json/deps.nix
@@ -0,0 +1,11 @@
[
{
goPackagePath = "gopkg.in/yaml.v2";
fetch = {
type = "git";
url = "https://gopkg.in/yaml.v2";
rev = "d670f9405373e636a5a2765eea47fac0c9bc91a4";
sha256 = "1w1xid51n8v1mydn2m3vgggw8qgpd5a5sr62snsc77d99fpjsrs0";
};
}
]
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -8058,6 +8058,8 @@ with pkgs;

yacc = bison;

yaml2json = callPackage ../development/tools/yaml2json { };

ycmd = callPackage ../development/tools/misc/ycmd {
inherit (darwin.apple_sdk.frameworks) Cocoa;
llvmPackages = llvmPackages_5;
Expand Down

0 comments on commit d1c5b48

Please sign in to comment.