mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
367b2aa1e4
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.
35 lines
852 B
Nix
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 ];
|
|
};
|
|
}
|