More Io fixes - hopefully final for now
svn path=/nixpkgs/trunk/; revision=13259
This commit is contained in:
parent
9ec27e7dfd
commit
c4e1f47334
@ -3,6 +3,7 @@ let
|
|||||||
lib = args.lib;
|
lib = args.lib;
|
||||||
fetchurl = args.fetchurl;
|
fetchurl = args.fetchurl;
|
||||||
FullDepEntry = args.FullDepEntry;
|
FullDepEntry = args.FullDepEntry;
|
||||||
|
doPatchShebangs = args.doPatchShebangs;
|
||||||
|
|
||||||
version = lib.getAttr ["version"] "2008.03.30" args;
|
version = lib.getAttr ["version"] "2008.03.30" args;
|
||||||
buildInputs = with args; [
|
buildInputs = with args; [
|
||||||
@ -25,7 +26,8 @@ rec {
|
|||||||
makeFlags = ["INSTALL_PREFIX=$out"];
|
makeFlags = ["INSTALL_PREFIX=$out"];
|
||||||
|
|
||||||
/* doConfigure should be specified separately */
|
/* doConfigure should be specified separately */
|
||||||
phaseNames = ["preBuild" "doMakeInstall"];
|
phaseNames = ["preBuild" "doMakeInstall" "postInstall" (doPatchShebangs "$out/share/io/samples")
|
||||||
|
(doPatchShebangs "$out/lib/io")];
|
||||||
|
|
||||||
preBuild = FullDepEntry (''
|
preBuild = FullDepEntry (''
|
||||||
for i in $pkgs ${
|
for i in $pkgs ${
|
||||||
@ -35,9 +37,17 @@ rec {
|
|||||||
}; do
|
}; do
|
||||||
echo "Path: $i"
|
echo "Path: $i"
|
||||||
sed -i build/AddonBuilder.io -e '/"\/sw"/asearchPrefixes append("'"$i"'"); '
|
sed -i build/AddonBuilder.io -e '/"\/sw"/asearchPrefixes append("'"$i"'"); '
|
||||||
|
sed -i addons/Flux/io/Flux.io -e 's@/usr/local/@'"$out/"'@g'
|
||||||
done
|
done
|
||||||
'') ["minInit" "addInputs" "doUnpack"];
|
'') ["minInit" "addInputs" "doUnpack"];
|
||||||
|
|
||||||
|
postInstall = FullDepEntry (''
|
||||||
|
ensureDir $out/share/io
|
||||||
|
|
||||||
|
ln -s $out/lib/io/addons $out/share/io
|
||||||
|
cp -r samples $out/share/io
|
||||||
|
'') ["minInit" "doUnpack" "defEnsureDir" "doMakeInstall"];
|
||||||
|
|
||||||
name = "io-" + version;
|
name = "io-" + version;
|
||||||
meta = {
|
meta = {
|
||||||
description = "Io programming language";
|
description = "Io programming language";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user