Allow specifying meta for buildHex and buildErlang.

Adds "meta" for meck package as a test.
This commit is contained in:
Gleb Peregud 2015-12-13 00:03:42 +01:00
parent 2a7e77cac5
commit acaf2c179e
3 changed files with 17 additions and 1 deletions

View File

@ -3,6 +3,7 @@
{ name, version { name, version
, buildInputs ? [], erlangDeps ? [] , buildInputs ? [], erlangDeps ? []
, postPatch ? "" , postPatch ? ""
, meta ? {}
, ... }@attrs: , ... }@attrs:
with stdenv.lib; with stdenv.lib;
@ -53,6 +54,10 @@ stdenv.mkDerivation (attrs // {
runHook postInstall runHook postInstall
''; '';
meta = {
inherit (erlang.meta) platforms;
} // meta;
passthru = { passthru = {
packageName = name; packageName = name;
inherit erlangDeps; inherit erlangDeps;

View File

@ -6,6 +6,7 @@
, buildInputs ? [], erlangDeps ? [], pluginDeps ? [] , buildInputs ? [], erlangDeps ? [], pluginDeps ? []
, postPatch ? "" , postPatch ? ""
, compilePorts ? false , compilePorts ? false
, meta ? {}
, ... }@attrs: , ... }@attrs:
with stdenv.lib; with stdenv.lib;
@ -88,6 +89,10 @@ stdenv.mkDerivation (attrs // {
sha256 = sha256; sha256 = sha256;
}; };
meta = {
inherit (erlang.meta) platforms;
} // meta;
passthru = { passthru = {
packageName = name; packageName = name;
inherit erlangDeps; inherit erlangDeps;

View File

@ -1,7 +1,13 @@
{ buildHex }: { stdenv, buildHex }:
buildHex { buildHex {
name = "meck"; name = "meck";
version = "0.8.3"; version = "0.8.3";
sha256 = "1dh2rhks1xly4f49x89vbhsk8fgwkx5zqp0n98mnng8rs1rkigak"; sha256 = "1dh2rhks1xly4f49x89vbhsk8fgwkx5zqp0n98mnng8rs1rkigak";
meta = {
description = "A mocking framework for Erlang";
homepage = "https://github.com/eproxus/meck";
license = stdenv.lib.licenses.apsl20;
};
} }