Skip to content

Commit

Permalink
add overrides for latest versions of cddl and cbor-diag
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Mar 18, 2020
1 parent afacc79 commit ec5a5e0
Show file tree
Hide file tree
Showing 9 changed files with 238 additions and 8 deletions.
14 changes: 6 additions & 8 deletions nix/pkgs.nix
@@ -1,12 +1,10 @@
# our packages overlay
pkgs: _: with pkgs; {
pkgs: _:
with pkgs; {
cardanoLedgerSpecsHaskellPackages = import ./haskell.nix {
inherit config
lib
stdenv
pkgs
haskell-nix
buildPackages
;
inherit config lib stdenv pkgs haskell-nix buildPackages;
};

cbor-diag = pkgs.callPackage ./pkgs/cbor-diag { };
cddl = pkgs.callPackage ./pkgs/cddl { };
}
3 changes: 3 additions & 0 deletions nix/pkgs/cbor-diag/Gemfile
@@ -0,0 +1,3 @@
source 'https://rubygems.org' do
gem 'cbor-diag'
end
21 changes: 21 additions & 0 deletions nix/pkgs/cbor-diag/Gemfile.lock
@@ -0,0 +1,21 @@
GEM
remote: https://rubygems.org/
specs:
cbor-diag (0.5.6)
json
neatjson
treetop (~> 1)
json (2.3.0)
neatjson (0.9)
polyglot (0.3.5)
treetop (1.6.10)
polyglot (~> 0.3)

PLATFORMS
ruby

DEPENDENCIES
cbor-diag!

BUNDLED WITH
1.17.3
19 changes: 19 additions & 0 deletions nix/pkgs/cbor-diag/default.nix
@@ -0,0 +1,19 @@
{ lib, bundlerApp, bundlerUpdateScript }:

bundlerApp {
pname = "cbor-diag";
gemdir = ./.;
exes = [
"cbor2diag.rb"
"cbor2json.rb"
"cbor2pretty.rb"
"cbor2yaml.rb"
"diag2cbor.rb"
"diag2pretty.rb"
"json2cbor.rb"
"json2pretty.rb"
"pretty2cbor.rb"
"pretty2diag.rb"
"yaml2cbor.rb"
];
}
54 changes: 54 additions & 0 deletions nix/pkgs/cbor-diag/gemset.nix
@@ -0,0 +1,54 @@
{
cbor-diag = {
dependencies = ["json" "neatjson" "treetop"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0pd0k4malg1l7w3ck5glh9w0hrsvknk8rp32vrir74yww1g6yplv";
type = "gem";
};
version = "0.5.6";
};
json = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0nrmw2r4nfxlfgprfgki3hjifgrcrs3l5zvm3ca3gb4743yr25mn";
type = "gem";
};
version = "2.3.0";
};
neatjson = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0fa2v7b6433j0iqh5iq9r71v7a5xabgjvqwsbl21vcsac7vf3ncw";
type = "gem";
};
version = "0.9";
};
polyglot = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr";
type = "gem";
};
version = "0.3.5";
};
treetop = {
dependencies = ["polyglot"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0g31pijhnv7z960sd09lckmw9h8rs3wmc8g4ihmppszxqm99zpv7";
type = "gem";
};
version = "1.6.10";
};
}
3 changes: 3 additions & 0 deletions nix/pkgs/cddl/Gemfile
@@ -0,0 +1,3 @@
source 'https://rubygems.org' do
gem 'cddl'
end
30 changes: 30 additions & 0 deletions nix/pkgs/cddl/Gemfile.lock
@@ -0,0 +1,30 @@
GEM
remote: https://rubygems.org/
specs:
abnc (0.1.0)
cbor-diag (0.5.6)
json
neatjson
treetop (~> 1)
cddl (0.8.10)
abnc
cbor-diag
colorize
json
regexp-examples
colorize (0.8.1)
json (2.3.0)
neatjson (0.9)
polyglot (0.3.5)
regexp-examples (1.5.1)
treetop (1.6.10)
polyglot (~> 0.3)

PLATFORMS
ruby

DEPENDENCIES
cddl!

BUNDLED WITH
1.17.3
7 changes: 7 additions & 0 deletions nix/pkgs/cddl/default.nix
@@ -0,0 +1,7 @@
{ lib, bundlerApp, bundlerUpdateScript }:

bundlerApp {
pname = "cddl";
gemdir = ./.;
exes = [ "cddl" ];
}
95 changes: 95 additions & 0 deletions nix/pkgs/cddl/gemset.nix
@@ -0,0 +1,95 @@
{
abnc = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "13nvzrk72nj130fs8bq8q3cfm48939rdzh7l31ncj5c4969hrbig";
type = "gem";
};
version = "0.1.0";
};
cbor-diag = {
dependencies = ["json" "neatjson" "treetop"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0pd0k4malg1l7w3ck5glh9w0hrsvknk8rp32vrir74yww1g6yplv";
type = "gem";
};
version = "0.5.6";
};
cddl = {
dependencies = ["abnc" "cbor-diag" "colorize" "json" "regexp-examples"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1gvh7n1vckrgz9wdfbfpk10h7vhg9kplfpacaybbmnbk1wjn961k";
type = "gem";
};
version = "0.8.10";
};
colorize = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b";
type = "gem";
};
version = "0.8.1";
};
json = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0nrmw2r4nfxlfgprfgki3hjifgrcrs3l5zvm3ca3gb4743yr25mn";
type = "gem";
};
version = "2.3.0";
};
neatjson = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0fa2v7b6433j0iqh5iq9r71v7a5xabgjvqwsbl21vcsac7vf3ncw";
type = "gem";
};
version = "0.9";
};
polyglot = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr";
type = "gem";
};
version = "0.3.5";
};
regexp-examples = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0wfkwczjn62qq3z96dxk43m0gh6d5cajx9pxkanvk88d3yqnx29v";
type = "gem";
};
version = "1.5.1";
};
treetop = {
dependencies = ["polyglot"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0g31pijhnv7z960sd09lckmw9h8rs3wmc8g4ihmppszxqm99zpv7";
type = "gem";
};
version = "1.6.10";
};
}

0 comments on commit ec5a5e0

Please sign in to comment.