diff options
author | Marc Weber <marco-oweber@gmx.de> | 2009-11-30 01:05:07 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2009-11-30 01:05:07 +0000 |
commit | 4a999a3811e528664f025b16efe358f65510378e (patch) | |
tree | 0801a4ba53931e4d1b09c16e370a8253e5eb3a77 /pkgs/development/compilers/neko/default.nix | |
parent | c5b2c2c40a7392fe5ddddf401344fb16f16ca3f1 (diff) | |
download | nixlib-4a999a3811e528664f025b16efe358f65510378e.tar nixlib-4a999a3811e528664f025b16efe358f65510378e.tar.gz nixlib-4a999a3811e528664f025b16efe358f65510378e.tar.bz2 nixlib-4a999a3811e528664f025b16efe358f65510378e.tar.lz nixlib-4a999a3811e528664f025b16efe358f65510378e.tar.xz nixlib-4a999a3811e528664f025b16efe358f65510378e.tar.zst nixlib-4a999a3811e528664f025b16efe358f65510378e.zip |
adding neko
adding repository locations for haxe* and neko repositories svn path=/nixpkgs/trunk/; revision=18709
Diffstat (limited to 'pkgs/development/compilers/neko/default.nix')
-rw-r--r-- | pkgs/development/compilers/neko/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/compilers/neko/default.nix b/pkgs/development/compilers/neko/default.nix new file mode 100644 index 000000000000..10b1a85f71dc --- /dev/null +++ b/pkgs/development/compilers/neko/default.nix @@ -0,0 +1,55 @@ +args: with args; + +let + + inherit (args.composableDerivation) composableDerivation edf wwf; + + libs = [ mysql apacheHttpd zlib sqlite pcre apr gtk]; + + includes = lib.concatMapStrings (x: ''"${x}/include",'' ) libs + ''"{gkt}/include/gtk-2.0",''; + +in + +composableDerivation {} ( fixed : { + + name = "neko-cvs"; + + src = sourceByName "neko"; + + # optionally remove apache mysql like gentoo does? + # they just remove libs/{apache,mod_neko} + buildInputs = [boehmgc pkgconfig makeWrapper] ++ libs; + # apr should be in apacheHttpd propagatedBuildInputs + + preConfigure = '' + sed -i \ + -e 's@"/usr/include",@${includes}@' \ + src/tools/install.neko + sed -i "s@/usr/local@$out@" Makefile + ensureDir $out/{bin,lib} + ''; + + inherit zlib; + + meta = { + description = "Neko is an high-level dynamicly typed programming language"; + homepage = http://nekovm.org; + license = ["GPLv2" ]; # -> docs/license.txt + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; + + # if stripping was done neko and nekoc would be the same. ?! + dontStrip = 1; + + postInstall = '' + wrapProgram "$out/bin/nekoc" \ + --set "LD_LIBRARY_PATH" $out/lib/neko \ + + wrapProgram "$out/bin/neko" \ + --set "LD_LIBRARY_PATH" $out/lib/neko \ + ''; + + # TODO make them optional and make them work + patches = [ ./disable-modules.patch ]; +}) |