mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
ddf5841d74
Also some minor refactoring of the expression.
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ stdenv, fetchurl, glib, libxml2, pkgconfig
|
|
, gnomeSupport ? true, libgnome_keyring, sqlite, glib_networking, gobjectIntrospection
|
|
, libintlOrEmpty
|
|
, intltool, python }:
|
|
let
|
|
majorVersion = "2.45";
|
|
version = "${majorVersion}.3";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "libsoup-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libsoup/${majorVersion}/libsoup-${version}.tar.xz";
|
|
sha256 = "04ma47hcrrbjp90r8jjn686cngnbgac24wgarpwwzlpg66wighva";
|
|
};
|
|
|
|
patchPhase = ''
|
|
patchShebangs libsoup/
|
|
'';
|
|
|
|
buildInputs = libintlOrEmpty ++ [ intltool python ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ]
|
|
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring sqlite ];
|
|
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;
|
|
};
|
|
}
|