summary refs log tree commit diff
path: root/pkgs/development/tools/heroku/default.nix
blob: 0993ee7b5443dcd74b5472a7a9c2bf26efa5d14f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, postgresql, ruby, makeWrapper, nodejs-6_x }:

with stdenv.lib;
stdenv.mkDerivation rec {
  version = "3.43.2";
  name = "heroku-${version}";

  meta = {
    homepage = "https://toolbelt.heroku.com";
    description = "Everything you need to get started using Heroku";
    maintainers = with maintainers; [ aflatter mirdhyn ];
    license = licenses.mit;
    platforms = with platforms; unix;
  };

  src = fetchurl {
    url = "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-${version}.tgz";
    sha256 = "1sapbxg7pzi89c95k0vsp8k5bysggkjf58jwck2xs0y4ly36wbnc";
  };

  installPhase = ''
    mkdir -p $out
    cp -R * $out/
    wrapProgram $out/bin/heroku --set HEROKU_NODE_PATH ${nodejs-6_x}/bin/node
  '';

  buildInputs = [ ruby postgresql makeWrapper ];
}