boo: init at 20131021
This commit is contained in:
parent
6c9269670e
commit
2edba48531
45
pkgs/development/compilers/boo/config.patch
Normal file
45
pkgs/development/compilers/boo/config.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
diff --git a/default.build b/default.build
|
||||||
|
index e48fd9e..b0dee4f 100644
|
||||||
|
--- a/default.build
|
||||||
|
+++ b/default.build
|
||||||
|
@@ -23,14 +23,14 @@
|
||||||
|
<property name="skip.ast" value="False" />
|
||||||
|
<property name="skip.vs" value="False" />
|
||||||
|
|
||||||
|
- <property name="gsv.name" value="gtksourceview-1.0" />
|
||||||
|
+ <property name="gsv.name" value="gtksourceview-2.0" />
|
||||||
|
|
||||||
|
<property name="build.dir" value="build" dynamic="True"/>
|
||||||
|
<property name="distrobuild.dir" value="distrobuild"/>
|
||||||
|
<property name="docs.dir" value="docs" />
|
||||||
|
<property name="examples.dir" value="examples" />
|
||||||
|
|
||||||
|
- <property name="install.prefix" value="/usr/local" />
|
||||||
|
+ <property name="install.prefix" value="$out" />
|
||||||
|
<property name="install.destdir" value="/" />
|
||||||
|
|
||||||
|
<property name="install.share" value="${path::combine(install.prefix,'share')}" />
|
||||||
|
@@ -575,9 +575,9 @@
|
||||||
|
key files for mime detection, etc
|
||||||
|
-->
|
||||||
|
|
||||||
|
- <property name="sharedmime.prefix" value="${pkg-config::get-variable('shared-mime-info','prefix')}" />
|
||||||
|
+ <property name="sharedmime.prefix" value="$out" />
|
||||||
|
<property name="fakeroot.sharedmime" value="${fakeroot}/${sharedmime.prefix}" />
|
||||||
|
- <property name="gsv.prefix" value="${pkg-config::get-variable(gsv.name,'prefix')}" />
|
||||||
|
+ <property name="gsv.prefix" value="$out" />
|
||||||
|
<property name="fakeroot.gsv" value="${fakeroot}/${gsv.prefix}" />
|
||||||
|
|
||||||
|
<mkdir dir="${fakeroot.boolib}"/>
|
||||||
|
@@ -707,9 +707,9 @@
|
||||||
|
key files for mime detection, etc
|
||||||
|
-->
|
||||||
|
|
||||||
|
- <property name="sharedmime.prefix" value="${pkg-config::get-variable('shared-mime-info','prefix')}" />
|
||||||
|
+ <property name="sharedmime.prefix" value="$out" />
|
||||||
|
<property name="fakeroot.sharedmime" value="${fakeroot}/${sharedmime.prefix}" />
|
||||||
|
- <property name="gsv.prefix" value="${pkg-config::get-variable(gsv.name,'prefix')}" />
|
||||||
|
+ <property name="gsv.prefix" value="$out" />
|
||||||
|
<property name="fakeroot.gsv" value="${fakeroot}/${gsv.prefix}" />
|
||||||
|
|
||||||
|
<foreach item="File" property="filename">
|
45
pkgs/development/compilers/boo/default.nix
Normal file
45
pkgs/development/compilers/boo/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, pkgconfig, dbus, mono, makeWrapper, nant
|
||||||
|
, shared_mime_info, gtksourceview, gtk
|
||||||
|
, targetVersion ? "4.5" }:
|
||||||
|
|
||||||
|
let
|
||||||
|
release = "alpha";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "boo-${version}";
|
||||||
|
version = "2013-10-21";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "boo-lang";
|
||||||
|
repo = "boo";
|
||||||
|
|
||||||
|
rev = "${release}";
|
||||||
|
sha256 = "174abdwfpq8i3ijx6bwqll16lx7xwici374rgsbymyk8g8mla094";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pkgconfig mono makeWrapper nant shared_mime_info gtksourceview
|
||||||
|
gtk
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [ ./config.patch ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -e 's|\$out|'$out'|' -i default.build
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
nant -t:mono-4.5
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
nant install
|
||||||
|
cp $out/lib/mono/boo/*.dll $out/lib/boo/
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "The Boo Programming Language";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -4009,6 +4009,10 @@ let
|
|||||||
|
|
||||||
bigloo = callPackage ../development/compilers/bigloo { };
|
bigloo = callPackage ../development/compilers/bigloo { };
|
||||||
|
|
||||||
|
boo = callPackage ../development/compilers/boo {
|
||||||
|
inherit (gnome) gtksourceview;
|
||||||
|
};
|
||||||
|
|
||||||
colm = callPackage ../development/compilers/colm { };
|
colm = callPackage ../development/compilers/colm { };
|
||||||
|
|
||||||
fetchegg = callPackage ../build-support/fetchegg { };
|
fetchegg = callPackage ../build-support/fetchegg { };
|
||||||
|
Loading…
Reference in New Issue
Block a user