mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Allow specifying meta for buildHex and buildErlang.
Adds "meta" for meck package as a test.
This commit is contained in:
parent
2a7e77cac5
commit
acaf2c179e
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user