nixpkgs/pkgs/development/libraries/gnome-sharp/default.nix

46 lines
983 B
Nix
Raw Normal View History

2018-12-24 23:56:49 +00:00
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
2018-12-24 23:56:49 +00:00
, gtk2
, mono
, gtk-sharp-2_0
, gnome2
, autoconf
, automake
, libtool
, which
}:
2018-12-24 23:56:49 +00:00
stdenv.mkDerivation rec {
pname = "gnome-sharp";
2018-12-24 23:56:49 +00:00
version = "2.24.4";
src = fetchFromGitHub {
owner = "mono";
repo = "gnome-sharp";
2019-09-09 00:38:31 +01:00
rev = version;
2018-12-24 23:56:49 +00:00
sha256 = "15jsm6n0sih0nf3w8vmvik97q7l3imz4vkdzmp9k7bssiz4glj1z";
};
nativeBuildInputs = [ pkg-config autoconf automake libtool which ];
buildInputs = [ gtk2 mono gtk-sharp-2_0 ]
2018-12-24 23:56:49 +00:00
++ (with gnome2; [ libart_lgpl gnome_vfs libgnome libgnomecanvas libgnomeui ]);
2019-08-07 06:45:53 +01:00
patches = [ ./fix-mono-path.patch ];
2018-12-24 23:56:49 +00:00
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 ];
};
}