1{ stdenv, fetchurl, postgresql, ruby, makeWrapper, nodejs-6_x }:
2
3with stdenv.lib;
4stdenv.mkDerivation rec {
5 version = "3.43.2";
6 name = "heroku-${version}";
7
8 meta = {
9 homepage = "https://toolbelt.heroku.com";
10 description = "Everything you need to get started using Heroku";
11 maintainers = with maintainers; [ aflatter mirdhyn ];
12 license = licenses.mit;
13 platforms = with platforms; unix;
14 };
15
16 src = fetchurl {
17 url = "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-${version}.tgz";
18 sha256 = "1sapbxg7pzi89c95k0vsp8k5bysggkjf58jwck2xs0y4ly36wbnc";
19 };
20
21 installPhase = ''
22 mkdir -p $out
23 cp -R * $out/
24 wrapProgram $out/bin/heroku --set HEROKU_NODE_PATH ${nodejs-6_x}/bin/node
25 '';
26
27 buildInputs = [ ruby postgresql makeWrapper ];
28}