diff options
author | Eric Merritt <eric@merritt.tech> | 2016-01-10 17:51:23 -0800 |
---|---|---|
committer | Eric Merritt <eric@merritt.tech> | 2016-01-14 14:38:10 -0800 |
commit | 4ed5836dd3c6e60d6931350cfb6cb85d514c52b0 (patch) | |
tree | 1fe4543f5683c227be99856574efef535a8137e4 | |
parent | b1719f9fcc618ba91c8812b838f5ca4fa12efb7f (diff) |
hex2nix: init at 0.0.2
-rw-r--r-- | pkgs/development/tools/erlang/hex2nix/default.nix | 23 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/erlang/hex2nix/default.nix b/pkgs/development/tools/erlang/hex2nix/default.nix new file mode 100644 index 0000000000000..8bb8f68e3a423 --- /dev/null +++ b/pkgs/development/tools/erlang/hex2nix/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchFromGitHub, buildRebar3, ibrowse, jsx, erlware_commons, getopt }: + +buildRebar3 rec { + name = "hex2nix"; + version = "0.0.2"; + + src = fetchFromGitHub { + owner = "erlang-nix"; + repo = "hex2nix"; + rev = "${version}"; + sha256 = "18gkq5fkdiwq5zj98cz4kqxbpzjkpqcplpsw987drxwdbvq4hkwm"; + }; + + erlangDeps = [ ibrowse jsx erlware_commons getopt ]; + + DEBUG=1; + + installPhase = '' + runHook preInstall + make PREFIX=$out install + runHook postInstall + ''; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7cf73f4243e0b..0e194ced3374f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5099,6 +5099,7 @@ let fetchHex = callPackage ../development/tools/build-managers/rebar3/fetch-hex.nix { }; erlangPackages = callPackage ../development/erlang-modules { }; + hex2nix = erlangPackages.callPackage ../development/tools/erlang/hex2nix { }; elixir = callPackage ../development/interpreters/elixir { }; |