nixpkgs/pkgs/development/libraries/libunity/default.nix

71 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchgit
, pkg-config
, glib
, vala
, dee
, gobject-introspection
, libdbusmenu
, gtk3
, intltool
, python3
, autoreconfHook
}:
2018-08-04 21:37:34 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2018-08-04 21:37:34 +00:00
pname = "libunity";
version = "unstable-2021-02-01";
2018-08-04 21:37:34 +00:00
outputs = [ "out" "dev" "py" ];
2018-08-04 21:37:34 +00:00
# Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/
src = fetchgit {
url = "https://git.launchpad.net/ubuntu/+source/libunity";
rev = "import/7.1.4+19.04.20190319-5";
sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8=";
2018-08-04 21:37:34 +00:00
};
patches = [
# Fix builf with latest Vala
# https://code.launchpad.net/~jtojnar/libunity/libunity
# Did not send upstream because Ubuntu is stuck on Vala 0.48.
./fix-vala.patch
];
2018-08-04 21:37:34 +00:00
nativeBuildInputs = [
autoreconfHook
gobject-introspection
2018-08-04 21:37:34 +00:00
intltool
pkg-config
2018-08-04 21:37:34 +00:00
python3
vala
];
buildInputs = [
glib
gtk3
];
propagatedBuildInputs = [
dee
libdbusmenu
];
2018-08-04 21:37:34 +00:00
preConfigure = ''
intltoolize
'';
2018-08-04 21:37:34 +00:00
configureFlags = [
"--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
2018-08-04 21:37:34 +00:00
];
meta = with lib; {
2018-08-04 21:37:34 +00:00
description = "A library for instrumenting and integrating with all aspects of the Unity shell";
homepage = "https://launchpad.net/libunity";
2018-08-04 21:37:34 +00:00
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
2018-08-04 21:37:34 +00:00
};
}