b040814679
- added support for geoclue for redshift - package geoclue 2.0.0 (as geoclue2) - package libsoup 2.44.1 (as libsoup_2_40)
33 lines
1,013 B
Nix
33 lines
1,013 B
Nix
{ stdenv, fetchurl, pkgconfig, glib, libxml2, sqlite, intltool, python
|
|
, gnomeSupport ? true, libgnome_keyring, glib_networking
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "libsoup-2.44.1";
|
|
|
|
src = fetchurl {
|
|
url = mirror://gnome/sources/libsoup/2.44/libsoup-2.44.1.tar.xz;
|
|
sha256 = "07acjwvik3gagcsdjzi85g44ga4pd3nh4ww6722bfzjzvlqw6cn5";
|
|
};
|
|
|
|
|
|
preConfigure = ''
|
|
substituteInPlace libsoup/tld-parser.py \
|
|
--replace "!/usr/bin/env python" "!${python}/bin/${python.executable}"
|
|
'';
|
|
buildInputs = [ pkgconfig intltool python ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
propagatedBuildInputs = [ glib libxml2 sqlite ]
|
|
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring ];
|
|
passthru.propagatedUserEnvPackages = [ glib_networking ];
|
|
|
|
# glib_networking is a runtime dependency, not a compile-time dependency
|
|
configureFlags = "--disable-tls-check";
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
meta = {
|
|
# inherit (glib.meta) maintainers platforms;
|
|
};
|
|
}
|