mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
geoclue2: Split into multiple outputs
This commit is contained in:
parent
8ac360ed95
commit
e514447063
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "19hfmr8fa1js8ynazdyjxlyrqpjn6m1719ay70ilga4rayxrcyyi";
|
sha256 = "19hfmr8fa1js8ynazdyjxlyrqpjn6m1719ay70ilga4rayxrcyyi";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig intltool wrapGAppsHook
|
pkgconfig intltool wrapGAppsHook
|
||||||
];
|
];
|
||||||
@ -21,6 +23,8 @@ stdenv.mkDerivation rec {
|
|||||||
dbus dbus_glib avahi
|
dbus dbus_glib avahi
|
||||||
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
|
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ dbus dbus_glib glib glib_networking ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace configure --replace "-Werror" ""
|
substituteInPlace configure --replace "-Werror" ""
|
||||||
'';
|
'';
|
||||||
@ -35,7 +39,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl";
|
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl";
|
||||||
|
|
||||||
propagatedBuildInputs = [ dbus dbus_glib glib glib_networking ];
|
postInstall = ''
|
||||||
|
sed -i $dev/lib/pkgconfig/libgeoclue-2.0.pc -e "s|includedir=.*|includedir=$dev/include|"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Geolocation framework and some data providers";
|
description = "Geolocation framework and some data providers";
|
||||||
|
Loading…
Reference in New Issue
Block a user