nixpkgs/pkgs/development/tools/erlang/hex2nix/default.nix

24 lines
530 B
Nix
Raw Normal View History

2016-01-11 02:51:23 +01:00
{stdenv, fetchFromGitHub, buildRebar3, ibrowse, jsx, erlware_commons, getopt }:
buildRebar3 rec {
name = "hex2nix";
2016-01-18 23:01:48 +01:00
version = "0.0.3";
2016-01-11 02:51:23 +01:00
src = fetchFromGitHub {
owner = "erlang-nix";
repo = "hex2nix";
rev = "${version}";
2016-01-18 23:01:48 +01:00
sha256 = "1snlcb60al7fz3z4c4rqrb9gqdyihyhsrr90n40v9rdm98csry3k";
2016-01-11 02:51:23 +01:00
};
erlangDeps = [ ibrowse jsx erlware_commons getopt ];
DEBUG=1;
installPhase = ''
runHook preInstall
make PREFIX=$out install
runHook postInstall
'';
}