diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libunity/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libunity/default.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libunity/default.nix b/nixpkgs/pkgs/development/libraries/libunity/default.nix new file mode 100644 index 000000000000..f6fb9a13e4cd --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libunity/default.nix @@ -0,0 +1,66 @@ +{ lib, stdenv +, fetchgit +, pkg-config +, glib +, vala +, dee +, gobject-introspection +, libdbusmenu +, gtk3 +, intltool +, python3 +, autoreconfHook +}: + +stdenv.mkDerivation { + pname = "libunity"; + version = "unstable-2019-03-19"; + + outputs = [ "out" "dev" "py" ]; + + src = fetchgit { + url = "https://git.launchpad.net/ubuntu/+source/libunity"; + rev = "import/7.1.4+19.04.20190319-0ubuntu1"; + sha256 = "15b49v88v74q20a5c0lq867qnlz7fx20xifl6j8ha359r0zkfwzj"; + }; + + nativeBuildInputs = [ + autoreconfHook + gobject-introspection + intltool + pkg-config + python3 + vala + ]; + + buildInputs = [ + glib + gtk3 + ]; + + propagatedBuildInputs = [ + dee + libdbusmenu + ]; + + patches = [ + # See: https://gitlab.gnome.org/GNOME/vala/issues/766 + ./fix-vala.patch + ]; + + preConfigure = '' + intltoolize + ''; + + configureFlags = [ + "--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides" + ]; + + meta = with lib; { + description = "A library for instrumenting and integrating with all aspects of the Unity shell"; + homepage = "https://launchpad.net/libunity"; + license = licenses.lgpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ worldofpeace ]; + }; +} |