From b041cff6af003dfa95ed5143b426569af51cb94a Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 21 Jun 2019 17:30:57 +0200 Subject: [PATCH] yj: init at 4.0.0 --- pkgs/development/tools/yj/default.nix | 28 +++++++++++++++++++++++++ pkgs/development/tools/yj/deps.nix | 30 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 60 insertions(+) create mode 100644 pkgs/development/tools/yj/default.nix create mode 100644 pkgs/development/tools/yj/deps.nix diff --git a/pkgs/development/tools/yj/default.nix b/pkgs/development/tools/yj/default.nix new file mode 100644 index 000000000000..3520bcfc1b12 --- /dev/null +++ b/pkgs/development/tools/yj/default.nix @@ -0,0 +1,28 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 +{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +buildGoPackage rec { + name = "yj-${version}"; + version = "4.0.0"; + rev = "d9a48607cc5c812e8cf4abccc8ad26f37ab51558"; + + goPackagePath = "github.com/sclevine/yj"; + + src = fetchgit { + inherit rev; + url = "https://github.com/sclevine/yj"; + sha256 = "04irphzs6hp9hvyski29ad29ga1kis3h8bw7jqvmy2c2rkrrsh7x"; + }; + + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + description = ''Convert YAML <=> TOML <=> JSON <=> HCL''; + license = licenses.asl20; + maintainers = with maintainers; [ Profpatsch ]; + platforms = platforms.all; + downloadPage = "https://github.com/sclevine/yj"; + updateWalker = true; + inherit version; + }; +} diff --git a/pkgs/development/tools/yj/deps.nix b/pkgs/development/tools/yj/deps.nix new file mode 100644 index 000000000000..0bfe7f5f5da3 --- /dev/null +++ b/pkgs/development/tools/yj/deps.nix @@ -0,0 +1,30 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 +[ + { + goPackagePath = "github.com/BurntSushi/toml"; + fetch = { + type = "git"; + url = "https://github.com/BurntSushi/toml"; + rev = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005"; + sha256 = "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"; + }; + } + { + goPackagePath = "github.com/hashicorp/hcl"; + fetch = { + type = "git"; + url = "https://github.com/hashicorp/hcl"; + rev = "cf7d376da96d9cecec7c7483cec2735efe54a410"; + sha256 = "0i1zhgpyvvgwkz74k8wd3sygsap1saqv37rw0j5vdpaazmpr1qkb"; + }; + } + { + goPackagePath = "gopkg.in/yaml.v2"; + fetch = { + type = "git"; + url = "https://gopkg.in/yaml.v2"; + rev = "51d6538a90f86fe93ac480b35f37b2be17fef232"; + sha256 = "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 79a31ca1d368..764a94081479 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6930,6 +6930,8 @@ in # To expose more packages for Yi, override the extraPackages arg. yi = callPackage ../applications/editors/yi/wrapper.nix { }; + yj = callPackage ../development/tools/yj { }; + yle-dl = callPackage ../tools/misc/yle-dl {}; you-get = python3Packages.callPackage ../tools/misc/you-get { };