3
0
Fork 0
forked from mirrors/nixpkgs

Adapt code according to @lethalman's review

- Use ${bash}/bin/bash
- We cannot use oraclejre7 because sqldeveloper wants a jdk.
This commit is contained in:
Antoine R. Dumont 2015-03-13 12:00:10 +01:00
parent c96aff8eb9
commit 86062d7a95

View file

@ -1,4 +1,4 @@
{ stdenv, makeWrapper, requireFile, unzip, oraclejdk7}:
{ stdenv, makeWrapper, requireFile, unzip, oraclejdk7, bash}:
stdenv.mkDerivation rec {
version = "4.0.3.16.84";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildCommand = ''
mkdir -p $out/bin
# patch to be able to install a sqldeveloper wrapper script compliant with nix's bin folder once installed
echo -e '#!/bin/bash\ncd "`dirname $0`"/../sqldeveloper/bin && bash sqldeveloper $*' >> $out/bin/sqldeveloper
echo -e '#!${bash}/bin/bash\ncd "`dirname $0`"/../sqldeveloper/bin && ${bash}/bin/bash sqldeveloper $*' >> $out/bin/sqldeveloper
cd $out
unzip ${src}