mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
Merge pull request #58050 from worldofpeace/libunity/fix-build
libunity fix build
This commit is contained in:
commit
ac1bd5b1d4
@ -1,27 +1,57 @@
|
|||||||
{ stdenv, fetchurl, python, pkgconfig
|
{ stdenv
|
||||||
, glib, icu, gobject-introspection }:
|
, fetchgit
|
||||||
|
, pkgconfig
|
||||||
|
, glib
|
||||||
|
, icu
|
||||||
|
, gobject-introspection
|
||||||
|
, dbus-glib
|
||||||
|
, vala
|
||||||
|
, python3
|
||||||
|
, autoreconfHook
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "dee-${version}";
|
pname = "dee";
|
||||||
version = "1.2.7";
|
version = "unstable-2017-06-16";
|
||||||
|
|
||||||
src = fetchurl {
|
outputs = [ "out" "dev" "py" ];
|
||||||
url = "https://launchpad.net/dee/1.0/${version}/+download/${name}.tar.gz";
|
|
||||||
sha256 = "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v";
|
src = fetchgit {
|
||||||
|
url = "https://git.launchpad.net/ubuntu/+source/dee";
|
||||||
|
rev = "import/1.2.7+17.10.20170616-4ubuntu1";
|
||||||
|
sha256 = "0q3d9d6ahcyibp6x23g1wvjfcppjh9v614s328yjmx47216z7394";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ glib gobject-introspection icu ];
|
patches = [
|
||||||
nativeBuildInputs = [ python pkgconfig ];
|
"${src}/debian/patches/gtkdocize.patch"
|
||||||
|
"${src}/debian/patches/strict-prototype.patch"
|
||||||
|
"${src}/debian/patches/icu-pkg-config.patch"
|
||||||
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-Wno-error=misleading-indentation" ]; # gcc-6
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
vala
|
||||||
|
autoreconfHook
|
||||||
|
gobject-introspection
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
icu
|
||||||
|
dbus-glib
|
||||||
|
];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--disable-gtk-doc"
|
||||||
|
"--with-pygi-overrides-dir=${placeholder ''py''}/${python3.sitePackages}/gi/overrides"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A library that uses DBus to provide objects allowing you to create Model-View-Controller type programs across DBus";
|
description = "A library that uses DBus to provide objects allowing you to create Model-View-Controller type programs across DBus";
|
||||||
homepage = https://launchpad.net/dee;
|
homepage = https://launchpad.net/dee;
|
||||||
license = licenses.lgpl3;
|
license = licenses.lgpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar worldofpeace ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,33 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool
|
{ stdenv
|
||||||
, glib, vala, dee, gobject-introspection, libdbusmenu
|
, fetchgit
|
||||||
, gtk3, intltool, gnome-common, python3, icu }:
|
, pkgconfig
|
||||||
|
, glib
|
||||||
|
, vala
|
||||||
|
, dee
|
||||||
|
, gobject-introspection
|
||||||
|
, libdbusmenu
|
||||||
|
, gtk3
|
||||||
|
, intltool
|
||||||
|
, python3
|
||||||
|
, autoreconfHook
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libunity";
|
pname = "libunity";
|
||||||
version = "7.1.4";
|
version = "unstable-2019-03-19";
|
||||||
|
|
||||||
name = "${pname}-${version}";
|
outputs = [ "out" "dev" "py" ];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
src = fetchgit {
|
||||||
|
url = "https://git.launchpad.net/ubuntu/+source/libunity";
|
||||||
src = fetchurl {
|
rev = "import/7.1.4+19.04.20190319-0ubuntu1";
|
||||||
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}+15.10.20151002.orig.tar.gz";
|
sha256 = "15b49v88v74q20a5c0lq867qnlz7fx20xifl6j8ha359r0zkfwzj";
|
||||||
sha256 = "1sf98qcjkxfibxk03firnc12dm6il8jzaq5763qam8ydg4li4gij";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoconf
|
autoreconfHook
|
||||||
automake
|
|
||||||
gnome-common
|
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
intltool
|
intltool
|
||||||
libtool
|
|
||||||
pkgconfig
|
pkgconfig
|
||||||
python3
|
python3
|
||||||
vala
|
vala
|
||||||
@ -32,17 +38,20 @@ stdenv.mkDerivation rec {
|
|||||||
gtk3
|
gtk3
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ dee libdbusmenu ];
|
propagatedBuildInputs = [
|
||||||
|
dee
|
||||||
|
libdbusmenu
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
preConfigure = ''
|
||||||
|
intltoolize
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--disable-static"
|
"--disable-static"
|
||||||
"--with-pygi-overrides-dir=$(out)/${python3.sitePackages}/gi/overrides"
|
"--with-pygi-overrides-dir=${placeholder ''py''}/${python3.sitePackages}/gi/overrides"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = "-L${icu}/lib";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A library for instrumenting and integrating with all aspects of the Unity shell";
|
description = "A library for instrumenting and integrating with all aspects of the Unity shell";
|
||||||
homepage = https://launchpad.net/libunity;
|
homepage = https://launchpad.net/libunity;
|
||||||
|
@ -10855,9 +10855,7 @@ in
|
|||||||
|
|
||||||
libdbiDrivers = callPackage ../development/libraries/libdbi-drivers { };
|
libdbiDrivers = callPackage ../development/libraries/libdbi-drivers { };
|
||||||
|
|
||||||
libunity = callPackage ../development/libraries/libunity {
|
libunity = callPackage ../development/libraries/libunity { };
|
||||||
inherit (gnome3) gnome-common;
|
|
||||||
};
|
|
||||||
|
|
||||||
libdbusmenu = callPackage ../development/libraries/libdbusmenu { };
|
libdbusmenu = callPackage ../development/libraries/libdbusmenu { };
|
||||||
libdbusmenu-gtk2 = libdbusmenu.override { gtkVersion = "2"; };
|
libdbusmenu-gtk2 = libdbusmenu.override { gtkVersion = "2"; };
|
||||||
|
Loading…
Reference in New Issue
Block a user