2016-05-23 14:54:04 +02:00
|
|
|
{ stdenv, fetchurl, postgresql, ruby, makeWrapper, nodejs-6_x }:
|
2015-03-24 11:03:07 +01:00
|
|
|
|
2015-04-28 17:02:33 +02:00
|
|
|
with stdenv.lib;
|
2015-03-24 11:03:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-05-23 14:54:04 +02:00
|
|
|
version = "3.43.2";
|
2015-03-24 11:03:07 +01:00
|
|
|
name = "heroku-${version}";
|
|
|
|
|
2015-04-28 17:02:33 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "https://toolbelt.heroku.com";
|
|
|
|
description = "Everything you need to get started using Heroku";
|
|
|
|
maintainers = with maintainers; [ aflatter mirdhyn ];
|
|
|
|
license = licenses.mit;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; unix;
|
2015-04-28 17:02:33 +02:00
|
|
|
};
|
|
|
|
|
2015-03-24 11:03:07 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-${version}.tgz";
|
2016-05-23 14:54:04 +02:00
|
|
|
sha256 = "1sapbxg7pzi89c95k0vsp8k5bysggkjf58jwck2xs0y4ly36wbnc";
|
2015-03-24 11:03:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -R * $out/
|
2016-05-23 14:54:04 +02:00
|
|
|
wrapProgram $out/bin/heroku --set HEROKU_NODE_PATH ${nodejs-6_x}/bin/node
|
2015-03-24 11:03:07 +01:00
|
|
|
'';
|
|
|
|
|
2016-03-14 11:48:08 +01:00
|
|
|
buildInputs = [ ruby postgresql makeWrapper ];
|
2015-03-24 11:03:07 +01:00
|
|
|
}
|