From 2edba485311c810e6f83de82406b0c9128a4c896 Mon Sep 17 00:00:00 2001 From: Al Zohali Date: Fri, 29 Jan 2016 23:32:48 +0300 Subject: [PATCH] boo: init at 20131021 --- pkgs/development/compilers/boo/config.patch | 45 +++++++++++++++++++++ pkgs/development/compilers/boo/default.nix | 45 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 3 files changed, 94 insertions(+) create mode 100644 pkgs/development/compilers/boo/config.patch create mode 100644 pkgs/development/compilers/boo/default.nix diff --git a/pkgs/development/compilers/boo/config.patch b/pkgs/development/compilers/boo/config.patch new file mode 100644 index 000000000000..f6e0eee29b1b --- /dev/null +++ b/pkgs/development/compilers/boo/config.patch @@ -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 @@ + + + +- ++ + + + + + + +- ++ + + + +@@ -575,9 +575,9 @@ + key files for mime detection, etc + --> + +- ++ + +- ++ + + + +@@ -707,9 +707,9 @@ + key files for mime detection, etc + --> + +- ++ + +- ++ + + + diff --git a/pkgs/development/compilers/boo/default.nix b/pkgs/development/compilers/boo/default.nix new file mode 100644 index 000000000000..c57d4de87678 --- /dev/null +++ b/pkgs/development/compilers/boo/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2e511dc3ad4b..f7dd3d594102 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4009,6 +4009,10 @@ let bigloo = callPackage ../development/compilers/bigloo { }; + boo = callPackage ../development/compilers/boo { + inherit (gnome) gtksourceview; + }; + colm = callPackage ../development/compilers/colm { }; fetchegg = callPackage ../build-support/fetchegg { };