forked from mirrors/nixpkgs
mono 3.8.0 -> 3.12.1
monodevelop 5.1.4.0 -> 5.7.0.660
This commit is contained in:
parent
e07ea5cf77
commit
1129f6b0db
|
@ -1,26 +1,61 @@
|
||||||
{stdenv, fetchgit
|
{ stdenv, fetchurl, fetchgit
|
||||||
, autoconf, automake, pkgconfig, shared_mime_info, intltool
|
, autoconf, automake, pkgconfig, shared_mime_info, intltool
|
||||||
, glib, mono, gtk-sharp, gnome-sharp
|
, glib, mono, gtk-sharp, gnome, gnome-sharp, unzip
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "5.1.4.0";
|
version = "5.7.0.660";
|
||||||
revision = "7d45bbe2ee22625f125d0c52548524f02d005cca";
|
revision = "6a74f9bdb90d9415b597064d815c9be38b401fee";
|
||||||
name = "monodevelop-${version}";
|
name = "monodevelop-${version}";
|
||||||
src = fetchgit {
|
|
||||||
url = https://github.com/mono/monodevelop.git;
|
srcs = [
|
||||||
rev = revision;
|
(fetchurl {
|
||||||
sha256 = "0qy12zdvb0jiic3pq1w9mcsz2wwxrn0m92abd184q06yg5m48g1b";
|
url = "http://download.mono-project.com/sources/monodevelop/${name}.tar.bz2";
|
||||||
};
|
sha256 = "0i9fpjkcys991dhxh02zf9imar3aj6fldk9ymy09vmr10f4d7vbf";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = "https://launchpadlibrarian.net/153448659/NUnit-2.6.3.zip";
|
||||||
|
sha256 = "0vzbziq44zy7fyyhb44mf9ypfi7gvs17rxpg8c9d9lvvdpkshhcp";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = "https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip";
|
||||||
|
sha256 = "0k5h5bz1p2v3d0w0hpkpbpvdkcszgp8sr9ik498r1bs72w5qlwnc";
|
||||||
|
})
|
||||||
|
(fetchgit {
|
||||||
|
url = "https://github.com/mono/nuget-binary.git";
|
||||||
|
rev = "ecb27dd49384d70b6c861d28763906f2b25b7c8";
|
||||||
|
sha256 = "0dj0yglgwn07xw2crr66vl0vcgnr6m041pynyq0kdd0z8nlp92ki";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
sourceRoot = "monodevelop-5.7";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# From https://bugzilla.xamarin.com/show_bug.cgi?id=23696#c19
|
||||||
|
|
||||||
|
# it seems parts of MonoDevelop 5.2+ need NUnit 2.6.4, which isn't included
|
||||||
|
# (?), so download it and put it in the right place in the tree
|
||||||
|
mkdir -v -p packages/NUnit.2.6.3/lib
|
||||||
|
cp -vfR ../NUnit-2.6.3/bin/framework/* packages/NUnit.2.6.3/lib
|
||||||
|
mkdir -v -p packages/NUnit.Runners.2.6.3/tools/lib
|
||||||
|
cp -vfR ../NUnit-2.6.3/bin/lib/* packages/NUnit.Runners.2.6.3/tools/lib
|
||||||
|
|
||||||
|
# cecil needs NUnit 2.5.10 - this is also missing from the tar
|
||||||
|
cp -vfR ../NUnit-2.5.10.11092/bin/net-2.0/framework/* external/cecil/Test/libs/nunit-2.5.10
|
||||||
|
|
||||||
|
# the tar doesn't include the nuget binary, so grab it from github and copy it
|
||||||
|
# into the right place
|
||||||
|
cp -vfR ../nuget-binary-*/* external/nuget-binary/
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoconf automake pkgconfig shared_mime_info intltool
|
autoconf automake pkgconfig shared_mime_info intltool
|
||||||
mono gtk-sharp gnome-sharp
|
mono gtk-sharp gnome-sharp unzip
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = "patchShebangs ./configure";
|
preConfigure = "patchShebangs ./configure";
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cat > ./main/buildinfo <<EOF
|
cat > ./buildinfo <<EOF
|
||||||
Release ID: ${version}
|
Release ID: ${version}
|
||||||
Git revision: ${revision}
|
Git revision: ${revision}
|
||||||
Build date: 1970-01-01 00:00:01
|
Build date: 1970-01-01 00:00:01
|
||||||
|
@ -31,9 +66,9 @@ stdenv.mkDerivation rec {
|
||||||
for prog in monodevelop mdtool; do
|
for prog in monodevelop mdtool; do
|
||||||
patch -p 0 $out/bin/$prog <<EOF
|
patch -p 0 $out/bin/$prog <<EOF
|
||||||
2a3,5
|
2a3,5
|
||||||
> export MONO_GAC_PREFIX=${gtk-sharp}:\$MONO_GAC_PREFIX
|
> export MONO_GAC_PREFIX=${gnome-sharp}:${gtk-sharp}:\$MONO_GAC_PREFIX
|
||||||
> export PATH=${mono}/bin:\$PATH
|
> export PATH=${mono}/bin:\$PATH
|
||||||
> export LD_LIBRARY_PATH=${glib}/lib:${gnome-sharp}/lib:${gtk-sharp}/lib:${gtk-sharp.gtk}/lib:\$LD_LIBRARY_PATH
|
> export LD_LIBRARY_PATH=${glib}/lib:${gnome.libgnomeui}/lib:${gnome.gnome_vfs}/lib:${gnome-sharp}/lib:${gtk-sharp}/lib:${gtk-sharp.gtk}/lib:\$LD_LIBRARY_PATH
|
||||||
>
|
>
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
@ -43,5 +78,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ obadz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mono-${version}";
|
name = "mono-${version}";
|
||||||
version = "3.8.0";
|
version = "3.12.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.mono-project.com/sources/mono/${name}.tar.bz2";
|
url = "http://download.mono-project.com/sources/mono/${name}.tar.bz2";
|
||||||
sha256 = "0jraxsjn7ra6z02n4wjpbj21mxm2w50iqviqvfl0ajikbxahvf3i";
|
sha256 = "03dn68vignknzxy1rx75p16qx1ild27hixgvr5mw0j19mx9z332x";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [bison pkgconfig glib gettext perl libgdiplus libX11 ncurses zlib];
|
buildInputs = [bison pkgconfig glib gettext perl libgdiplus libX11 ncurses zlib];
|
||||||
|
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
|
||||||
homepage = http://mono-project.com/;
|
homepage = http://mono-project.com/;
|
||||||
description = "Cross platform, open source .NET development framework";
|
description = "Cross platform, open source .NET development framework";
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
maintainers = with stdenv.lib.maintainers; [ viric thoughtpolice ];
|
maintainers = with stdenv.lib.maintainers; [ viric thoughtpolice obadz ];
|
||||||
license = stdenv.lib.licenses.free; # Combination of LGPL/X11/GPL ?
|
license = stdenv.lib.licenses.free; # Combination of LGPL/X11/GPL ?
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,8 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
patches = [ ./Makefile.in.patch ];
|
patches = [ ./Makefile.in.patch ];
|
||||||
|
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.mono-project.com/docs/gui/gtksharp/;
|
homepage = http://www.mono-project.com/docs/gui/gtksharp/;
|
||||||
description = "A .NET language binding for assorted GNOME libraries";
|
description = "A .NET language binding for assorted GNOME libraries";
|
||||||
|
|
Loading…
Reference in a new issue