forked from mirrors/nixpkgs
adbba9d5f6
The pinentry_gnome package requires gcr. Unfortunately, when configure
asks about the library (or `pkg-config --libs gcr-base-3` is used) it
fails because glib is not in scope.
```
$ pkg-config --libs gcr-base-3
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'gcr-base-3', not found
```
This commit moves glib and gtk to `propagatedBuildInputs` so pkgconfig
could find them.
See also 38b58bab62
31 lines
801 B
Nix
31 lines
801 B
Nix
{ stdenv, fetchurl, pkgconfig, intltool, gnupg, p11_kit, glib
|
|
, libgcrypt, libtasn1, dbus_glib, gtk, pango, gdk_pixbuf, atk
|
|
, gobjectIntrospection, makeWrapper, libxslt, vala_0_32, gnome3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
buildInputs = [
|
|
pkgconfig intltool gnupg gobjectIntrospection libxslt
|
|
libgcrypt libtasn1 dbus_glib pango gdk_pixbuf atk makeWrapper vala_0_32
|
|
];
|
|
|
|
propagatedBuildInputs = [ glib gtk p11_kit ];
|
|
|
|
#doCheck = true;
|
|
|
|
#enableParallelBuilding = true; issues on hydra
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/gcr-viewer" \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
platforms = platforms.linux;
|
|
maintainers = gnome3.maintainers;
|
|
};
|
|
}
|