From ff58a9831b0554968f4d714f2626078d5f89d3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Andr=C3=A9?= Date: Thu, 17 Dec 2015 12:45:42 +0100 Subject: [PATCH] matter-compiler: initial expression, fixes #11780 --- lib/maintainers.nix | 1 + .../compilers/matter-compiler/Gemfile | 3 +++ .../compilers/matter-compiler/Gemfile.lock | 13 +++++++++++ .../compilers/matter-compiler/default.nix | 22 +++++++++++++++++++ .../compilers/matter-compiler/gemset.nix | 9 ++++++++ pkgs/top-level/all-packages.nix | 2 ++ 6 files changed, 50 insertions(+) create mode 100644 pkgs/development/compilers/matter-compiler/Gemfile create mode 100644 pkgs/development/compilers/matter-compiler/Gemfile.lock create mode 100644 pkgs/development/compilers/matter-compiler/default.nix create mode 100644 pkgs/development/compilers/matter-compiler/gemset.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index f1dce94bf8cb..e19970fe9144 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -266,6 +266,7 @@ rszibele = "Richard Szibele "; rushmorem = "Rushmore Mushambi "; rvl = "Rodney Lorrimar "; + rvlander = "Gaëtan André "; rycee = "Robert Helgesson "; samuelrivas = "Samuel Rivas "; sander = "Sander van der Burg "; diff --git a/pkgs/development/compilers/matter-compiler/Gemfile b/pkgs/development/compilers/matter-compiler/Gemfile new file mode 100644 index 000000000000..21ec23452055 --- /dev/null +++ b/pkgs/development/compilers/matter-compiler/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem 'matter_compiler' diff --git a/pkgs/development/compilers/matter-compiler/Gemfile.lock b/pkgs/development/compilers/matter-compiler/Gemfile.lock new file mode 100644 index 000000000000..2eefe96ec63b --- /dev/null +++ b/pkgs/development/compilers/matter-compiler/Gemfile.lock @@ -0,0 +1,13 @@ +GEM + remote: https://rubygems.org/ + specs: + matter_compiler (0.5.1) + +PLATFORMS + ruby + +DEPENDENCIES + matter_compiler + +BUNDLED WITH + 1.10.6 diff --git a/pkgs/development/compilers/matter-compiler/default.nix b/pkgs/development/compilers/matter-compiler/default.nix new file mode 100644 index 000000000000..12da620fe5bd --- /dev/null +++ b/pkgs/development/compilers/matter-compiler/default.nix @@ -0,0 +1,22 @@ + +{ stdenv, lib, bundlerEnv, ruby }: + +bundlerEnv { + name = "matter_compiler-0.5.1"; + + inherit ruby; + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + + meta = with lib; { + description = '' + Matter Compiler is a API Blueprint AST Media Types to API Blueprint conversion tool. + It composes an API blueprint from its serialzed AST media-type. + ''; + homepage = https://github.com/apiaryio/matter_compiler/; + license = licenses.mit; + maintainers = with maintainers; [ rvlander ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/development/compilers/matter-compiler/gemset.nix b/pkgs/development/compilers/matter-compiler/gemset.nix new file mode 100644 index 000000000000..9ac7ae8d20e4 --- /dev/null +++ b/pkgs/development/compilers/matter-compiler/gemset.nix @@ -0,0 +1,9 @@ +{ + "matter_compiler" = { + version = "0.5.1"; + source = { + type = "gem"; + sha256 = "16501zdiqxk34v2d0nlbwrcrjm6g57hrsmsw0crwssn29v5zbykf"; + }; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b4541cc5502..d0d2f2115488 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5538,6 +5538,8 @@ let ruby = ruby_2_0_0; }; + matter-compiler = callPackage ../development/compilers/matter-compiler {}; + cfr = callPackage ../development/tools/java/cfr { }; checkstyle = callPackage ../development/tools/analysis/checkstyle { };