1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 02:46:38 +00:00
nixpkgs/pkgs/development/libraries/dbus-glib/default.nix
Tuomas Tynkkynen 367b2aa1e4 dbus-glibc: Set --exec-prefix to fix pkgconfig file
Without this notify-osd fails to find dbus-binding-tool, since the
pkgconfig file would contain e.g.:

````
prefix=/nix/store/hxsbjbjn7g1j1cf60n228yi9wnzrl4yk-dbus-glib-0.104
exec_prefix=${prefix}
````

... and notify-osd is using `exec_prefix` to locate the binaries.
Set it to $dev to match the location of installed binaries (we have
`outputBin = "dev";`).

Issue #15074.
2016-05-05 05:37:38 +03:00

35 lines
852 B
Nix

{ stdenv, fetchurl, pkgconfig, expat, gettext, libiconv, dbus, glib }:
stdenv.mkDerivation rec {
name = "dbus-glib-0.104";
src = fetchurl {
url = "${meta.homepage}/releases/dbus-glib/${name}.tar.gz";
sha256 = "1xi1v1msz75qs0s4lkyf1psrksdppa3hwkg0mznc6gpw5flg3hdz";
};
outputs = [ "dev" "out" "docdev" ];
outputBin = "dev";
nativeBuildInputs = [ pkgconfig gettext ];
buildInputs = [ expat libiconv ];
propagatedBuildInputs = [ dbus glib ];
preConfigure = ''
configureFlagsArray+=("--exec-prefix=$dev")
'';
doCheck = true;
passthru = { inherit dbus glib; };
meta = {
homepage = http://dbus.freedesktop.org;
license = with stdenv.lib.licenses; [ afl21 gpl2 ];
description = "Obsolete glib bindings for D-Bus lightweight IPC mechanism";
maintainers = [ stdenv.lib.maintainers.urkud ];
};
}