From 918ed0b8345cad114d0f9b4fb44cd1fb99084639 Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Mon, 14 Mar 2016 11:48:08 +0100 Subject: [PATCH] heroku: FIX for node not found https://github.com/NixOS/nixpkgs/issues/10298 --- pkgs/development/tools/heroku/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/heroku/default.nix b/pkgs/development/tools/heroku/default.nix index f41ad639e45b..d3e115708cc2 100644 --- a/pkgs/development/tools/heroku/default.nix +++ b/pkgs/development/tools/heroku/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, postgresql, ruby }: +{ stdenv, fetchurl, postgresql, ruby, makeWrapper, nodejs-5_x }: with stdenv.lib; stdenv.mkDerivation rec { @@ -20,7 +20,8 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out cp -R * $out/ + wrapProgram $out/bin/heroku --set HEROKU_NODE_PATH ${nodejs-5_x}/bin/node ''; - buildInputs = [ ruby postgresql ]; + buildInputs = [ ruby postgresql makeWrapper ]; }