diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gnome-sharp')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/gnome-sharp/default.nix | 45 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/gnome-sharp/fix-mono-path.patch | 13 |
2 files changed, 58 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gnome-sharp/default.nix b/nixpkgs/pkgs/development/libraries/gnome-sharp/default.nix new file mode 100644 index 000000000000..4aa510f36068 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/gnome-sharp/default.nix @@ -0,0 +1,45 @@ +{ stdenv +, lib +, fetchFromGitHub +, pkg-config +, gtk2 +, mono +, gtk-sharp-2_0 +, gnome2 +, autoconf +, automake +, libtool +, which +}: + +stdenv.mkDerivation rec { + pname = "gnome-sharp"; + version = "2.24.4"; + + src = fetchFromGitHub { + owner = "mono"; + repo = "gnome-sharp"; + rev = version; + sha256 = "15jsm6n0sih0nf3w8vmvik97q7l3imz4vkdzmp9k7bssiz4glj1z"; + }; + + nativeBuildInputs = [ pkg-config autoconf automake libtool which ]; + buildInputs = [ gtk2 mono gtk-sharp-2_0 ] + ++ (with gnome2; [ libart_lgpl gnome_vfs libgnome libgnomecanvas libgnomeui ]); + + patches = [ ./fix-mono-path.patch ]; + + preConfigure = '' + ./bootstrap-${lib.versions.majorMinor version} + ''; + + dontStrip = true; + + meta = with lib; { + homepage = "https://www.mono-project.com/docs/gui/gtksharp/"; + description = "A .NET language binding for assorted GNOME libraries"; + license = licenses.lgpl21; + platforms = platforms.linux; + maintainers = with maintainers; [ vbgl ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/gnome-sharp/fix-mono-path.patch b/nixpkgs/pkgs/development/libraries/gnome-sharp/fix-mono-path.patch new file mode 100644 index 000000000000..706f119c8baa --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/gnome-sharp/fix-mono-path.patch @@ -0,0 +1,13 @@ +diff --git a/sample/gconf/Makefile.am b/sample/gconf/Makefile.am +index a0ee802..8260694 100644 +--- a/sample/gconf/Makefile.am ++++ b/sample/gconf/Makefile.am +@@ -22,7 +22,7 @@ sample.exe: $(SCHEMA) $(srcdir)/sample.glade $(FILES) $(ASSEMBLIES) + $(CSC) /out:sample.exe $(FILES) $(REFERENCES) $(RESOURCES) + + Settings.cs: $(SCHEMA) +- MONO_PATH=$(top_builddir)/gconf/GConf/gconf-sharp.dll:${MONO_PATH} $(RUNTIME) $(GCONFDIR)/tools/gconfsharp-schemagen.exe Sample $(SCHEMA) > Settings.cs ++ MONO_PATH=$(top_builddir)/gconf/GConf/:${MONO_PATH} $(RUNTIME) $(GCONFDIR)/tools/gconfsharp-schemagen.exe Sample $(SCHEMA) > Settings.cs + + CLEANFILES = sample.exe Settings.cs + |