summary refs log tree commit diff
path: root/pkgs/development/libraries/librest
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-04-27 20:46:13 +0200
committerJan Tojnar <jtojnar@gmail.com>2021-05-05 22:43:06 +0200
commit587953e2db378b004144a456dca1d2dd117c4c54 (patch)
tree1214a59693aa203935974a1096e727d2e77e167a /pkgs/development/libraries/librest
parent11f0852a640552a5bf64e30a5037bb499cd21373 (diff)
downloadnixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.tar
nixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.tar.gz
nixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.tar.bz2
nixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.tar.lz
nixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.tar.xz
nixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.tar.zst
nixpkgs-587953e2db378b004144a456dca1d2dd117c4c54.zip
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.
Diffstat (limited to 'pkgs/development/libraries/librest')
-rw-r--r--pkgs/development/libraries/librest/default.nix30
1 files changed, 24 insertions, 6 deletions
diff --git a/pkgs/development/libraries/librest/default.nix b/pkgs/development/libraries/librest/default.nix
index 3b30181c326..a8bcebb533d 100644
--- a/pkgs/development/libraries/librest/default.nix
+++ b/pkgs/development/libraries/librest/default.nix
@@ -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;
   };
 }