Add support for Hex package name
There are some packages on Hex which have custom hex-specific names, but inside there's a base project name. Remove most packages andadd ibrowse, meck, jiffy
This commit is contained in:
parent
6dcbe059e1
commit
2251a942fc
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, erlang, rebar3, openssl, libyaml, fetchurl }:
|
{ stdenv, erlang, rebar3, openssl, libyaml, fetchurl }:
|
||||||
|
|
||||||
{ name, version, sha256
|
{ name, version, sha256
|
||||||
|
, hexPkg ? name
|
||||||
, buildInputs ? [], erlangDeps ? []
|
, buildInputs ? [], erlangDeps ? []
|
||||||
, postPatch ? ""
|
, postPatch ? ""
|
||||||
, ... }@attrs:
|
, ... }@attrs:
|
||||||
@ -44,8 +45,8 @@ stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
DEBUG=1 HOME=. rebar3 update
|
HOME=. rebar3 update
|
||||||
DEBUG=1 HOME=. rebar3 compile
|
HOME=. rebar3 compile
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -62,7 +63,7 @@ stdenv.mkDerivation (attrs // {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://s3.amazonaws.com/s3.hex.pm/tarballs/${name}-${version}.tar";
|
url = "https://s3.amazonaws.com/s3.hex.pm/tarballs/${hexPkg}-${version}.tar";
|
||||||
sha256 = sha256;
|
sha256 = sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,32 +7,10 @@ let
|
|||||||
buildErlang = callPackage ./build-erlang.nix {};
|
buildErlang = callPackage ./build-erlang.nix {};
|
||||||
buildHex = callPackage ./build-hex.nix {};
|
buildHex = callPackage ./build-hex.nix {};
|
||||||
|
|
||||||
# dependencies for ejabberd
|
|
||||||
p1_utils = callPackage ./hex/p1_utils.nix {};
|
|
||||||
cache_tab = callPackage ./hex/cache_tab.nix {};
|
|
||||||
stringprep = callPackage ./hex/stringprep.nix {};
|
|
||||||
p1_xml = callPackage ./hex/p1_xml.nix {};
|
|
||||||
p1_tls = callPackage ./hex/p1_tls.nix {};
|
|
||||||
p1_stun = callPackage ./hex/p1_stun.nix {};
|
|
||||||
esip = callPackage ./hex/esip.nix {};
|
|
||||||
p1_yaml = callPackage ./hex/p1_yaml.nix {};
|
|
||||||
xmlrpc = callPackage ./hex/xmlrpc.nix {};
|
|
||||||
jiffy = callPackage ./hex/jiffy.nix {};
|
|
||||||
sync = callPackage ./hex/sync.nix {};
|
|
||||||
erlang-katana = callPackage ./hex/erlang-katana.nix {};
|
|
||||||
eper = callPackage ./hex/eper.nix {};
|
|
||||||
|
|
||||||
goldrush = callPackage ./hex/goldrush.nix {};
|
goldrush = callPackage ./hex/goldrush.nix {};
|
||||||
lager = callPackage ./hex/lager.nix {};
|
|
||||||
getopt = callPackage ./hex/getopt.nix {};
|
|
||||||
meck = callPackage ./hex/meck.nix {};
|
|
||||||
ibrowse = callPackage ./hex/ibrowse.nix {};
|
ibrowse = callPackage ./hex/ibrowse.nix {};
|
||||||
aleppo = callPackage ./hex/aleppo.nix {};
|
jiffy = callPackage ./hex/jiffy.nix {};
|
||||||
zipper = callPackage ./hex/zipper.nix {};
|
lager = callPackage ./hex/lager.nix {};
|
||||||
erlang-github = callPackage ./hex/erlang-github.nix {};
|
meck = callPackage ./hex/meck.nix {};
|
||||||
|
|
||||||
elvis = callPackage ./hex/elvis.nix {};
|
|
||||||
apns = callPackage ./hex/apns.nix {};
|
|
||||||
appmon = callPackage ./hex/appmon.nix {};
|
|
||||||
};
|
};
|
||||||
in self
|
in self
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
{ buildErlang, fetchgit }:
|
{ buildHex }:
|
||||||
|
|
||||||
buildErlang {
|
buildHex {
|
||||||
name = "ibrowse";
|
name = "ibrowse";
|
||||||
version = "0.1";
|
version = "4.2.2";
|
||||||
src = fetchgit {
|
sha256 = "1bn0645n95j5zypdsns1w4kgd3q9lz8fj898hg355j5w89scn05q";
|
||||||
url = "git://github.com/cmullaparthi/ibrowse.git";
|
|
||||||
sha256 = "1qvz4bmh307avjsxmhhdf35dd5wzmii0cbf6jyvvlhhkq4y0nmnj";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
{ buildErlang, fetchgit }:
|
{ buildHex }:
|
||||||
|
|
||||||
buildErlang {
|
buildHex {
|
||||||
name = "jiffy";
|
name = "jiffy";
|
||||||
version = "0.1";
|
version = "0.14.5";
|
||||||
src = fetchgit {
|
hexPkg = "barrel_jiffy";
|
||||||
url = "git://github.com/davisp/jiffy.git";
|
sha256 = "0iqz8bp0f672c5rfy5dpw9agv2708wzldd00ngbsffglpinlr1wa";
|
||||||
sha256 = "02qb8m4s2p51m5f882ifsaph9fwx0bih37q5q90ba8cvsak65isx";
|
|
||||||
};
|
|
||||||
}
|
}
|
@ -1,10 +1,7 @@
|
|||||||
{ buildErlang, fetchgit }:
|
{ buildHex }:
|
||||||
|
|
||||||
buildErlang {
|
buildHex {
|
||||||
name = "meck";
|
name = "meck";
|
||||||
version = "0.1";
|
version = "0.8.3";
|
||||||
src = fetchgit {
|
sha256 = "1dh2rhks1xly4f49x89vbhsk8fgwkx5zqp0n98mnng8rs1rkigak";
|
||||||
url = "git://github.com/eproxus/meck.git";
|
|
||||||
sha256 = "077p3v81mspy69247bz4apln3gp567m4xpmzxmdjd6pyh6m5ahpk";
|
|
||||||
};
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user