mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
Added Io programming language
svn path=/nixpkgs/trunk/; revision=13241
This commit is contained in:
parent
ee32d677ab
commit
add91332e8
42
pkgs/development/interpreters/io/default.nix
Normal file
42
pkgs/development/interpreters/io/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
args :
|
||||
let
|
||||
lib = args.lib;
|
||||
fetchurl = args.fetchurl;
|
||||
FullDepEntry = args.FullDepEntry;
|
||||
|
||||
version = lib.getAttr ["version"] "2008.03.30" args;
|
||||
buildInputs = with args; [
|
||||
zlib sqlite gmp libffi cairo ncurses freetype mesa
|
||||
libpng libtiff libjpeg readline libsndfile libxml2
|
||||
freeglut e2fsprogs libsamplerate pcre
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = /* Here a fetchurl expression goes */
|
||||
fetchurl {
|
||||
url = "http://github.com/stevedekorte/io/tarball/${version}";
|
||||
name = "io-${version}.tar.gz";
|
||||
sha256 = "1vdjyqv86l290kzhyw8mwzfqgb279dl9nqmy6bih6g8n4yz36ady";
|
||||
};
|
||||
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
makeFlags = ["INSTALL_PREFIX=$out"];
|
||||
|
||||
/* doConfigure should be specified separately */
|
||||
phaseNames = ["preBuild" "doMakeInstall"];
|
||||
|
||||
preBuild = FullDepEntry (''
|
||||
for i in $pkgs ${
|
||||
if args.stdenv ? glibc then args.stdenv.glibc else ""
|
||||
}; do
|
||||
sed -i build/AddonBuilder.io -e '/"\/sw"/asearchPrefixes append("'"$i"'"); '
|
||||
done
|
||||
'') ["minInit" "addInputs" "doUnpack"];
|
||||
|
||||
name = "io-" + version;
|
||||
meta = {
|
||||
description = "Io programming language";
|
||||
};
|
||||
}
|
@ -1979,6 +1979,12 @@ let
|
||||
inherit fetchurl stdenv readline libtool gmp gawk makeWrapper;
|
||||
};
|
||||
|
||||
io = builderDefsPackage (import ../development/interpreters/io) {
|
||||
inherit sqlite zlib gmp libffi cairo ncurses freetype mesa
|
||||
libpng libtiff libjpeg readline libsndfile libxml2
|
||||
freeglut e2fsprogs libsamplerate pcre;
|
||||
};
|
||||
|
||||
kaffe = import ../development/interpreters/kaffe {
|
||||
inherit fetchurl stdenv jikes alsaLib xlibs;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user