mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
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 }:
|
||||
|
||||
{ name, version, sha256
|
||||
, hexPkg ? name
|
||||
, buildInputs ? [], erlangDeps ? []
|
||||
, postPatch ? ""
|
||||
, ... }@attrs:
|
||||
|
@ -44,8 +45,8 @@ stdenv.mkDerivation (attrs // {
|
|||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
DEBUG=1 HOME=. rebar3 update
|
||||
DEBUG=1 HOME=. rebar3 compile
|
||||
HOME=. rebar3 update
|
||||
HOME=. rebar3 compile
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
|
@ -62,7 +63,7 @@ stdenv.mkDerivation (attrs // {
|
|||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
|
|
|
@ -7,32 +7,10 @@ let
|
|||
buildErlang = callPackage ./build-erlang.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 {};
|
||||
lager = callPackage ./hex/lager.nix {};
|
||||
getopt = callPackage ./hex/getopt.nix {};
|
||||
meck = callPackage ./hex/meck.nix {};
|
||||
ibrowse = callPackage ./hex/ibrowse.nix {};
|
||||
aleppo = callPackage ./hex/aleppo.nix {};
|
||||
zipper = callPackage ./hex/zipper.nix {};
|
||||
erlang-github = callPackage ./hex/erlang-github.nix {};
|
||||
|
||||
elvis = callPackage ./hex/elvis.nix {};
|
||||
apns = callPackage ./hex/apns.nix {};
|
||||
appmon = callPackage ./hex/appmon.nix {};
|
||||
jiffy = callPackage ./hex/jiffy.nix {};
|
||||
lager = callPackage ./hex/lager.nix {};
|
||||
meck = callPackage ./hex/meck.nix {};
|
||||
};
|
||||
in self
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
{ buildErlang, fetchgit }:
|
||||
{ buildHex }:
|
||||
|
||||
buildErlang {
|
||||
buildHex {
|
||||
name = "ibrowse";
|
||||
version = "0.1";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/cmullaparthi/ibrowse.git";
|
||||
sha256 = "1qvz4bmh307avjsxmhhdf35dd5wzmii0cbf6jyvvlhhkq4y0nmnj";
|
||||
};
|
||||
}
|
||||
version = "4.2.2";
|
||||
sha256 = "1bn0645n95j5zypdsns1w4kgd3q9lz8fj898hg355j5w89scn05q";
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
{ buildErlang, fetchgit }:
|
||||
{ buildHex }:
|
||||
|
||||
buildErlang {
|
||||
buildHex {
|
||||
name = "jiffy";
|
||||
version = "0.1";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/davisp/jiffy.git";
|
||||
sha256 = "02qb8m4s2p51m5f882ifsaph9fwx0bih37q5q90ba8cvsak65isx";
|
||||
};
|
||||
}
|
||||
version = "0.14.5";
|
||||
hexPkg = "barrel_jiffy";
|
||||
sha256 = "0iqz8bp0f672c5rfy5dpw9agv2708wzldd00ngbsffglpinlr1wa";
|
||||
}
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{ buildErlang, fetchgit }:
|
||||
{ buildHex }:
|
||||
|
||||
buildErlang {
|
||||
buildHex {
|
||||
name = "meck";
|
||||
version = "0.1";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/eproxus/meck.git";
|
||||
sha256 = "077p3v81mspy69247bz4apln3gp567m4xpmzxmdjd6pyh6m5ahpk";
|
||||
};
|
||||
}
|
||||
version = "0.8.3";
|
||||
sha256 = "1dh2rhks1xly4f49x89vbhsk8fgwkx5zqp0n98mnng8rs1rkigak";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue