3
0
Fork 0
forked from mirrors/nixpkgs

librest: enable on Darwin

Not sure if it will work since the certificates file is not present on MacOS AFAICT but it is needed for GTK 4 so 🤷‍♀️.

Also clean up the expression and correct license.
This commit is contained in:
Jan Tojnar 2021-04-27 20:46:13 +02:00
parent 11f0852a64
commit 587953e2db
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,4 +1,12 @@
{ lib, stdenv, fetchurl, pkg-config, glib, libsoup, gobject-introspection, gnome3 }:
{ lib
, stdenv
, fetchurl
, pkg-config
, glib
, libsoup
, gobject-introspection
, gnome3
}:
stdenv.mkDerivation rec {
pname = "rest";
@ -9,10 +17,20 @@ stdenv.mkDerivation rec {
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
};
nativeBuildInputs = [ pkg-config gobject-introspection ];
buildInputs = [ glib libsoup ];
nativeBuildInputs = [
pkg-config
gobject-introspection
];
configureFlags = [ "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt" ];
buildInputs = [
glib
libsoup
];
configureFlags = [
# Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
"--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
];
passthru = {
updateScript = gnome3.updateScript {
@ -25,8 +43,8 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Helper library for RESTful services";
homepage = "https://wiki.gnome.org/Projects/Librest";
license = licenses.lgpl21;
platforms = platforms.linux;
license = licenses.lgpl21Only;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}