nixpkgs/pkgs/development/libraries/librest/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, pkg-config
, glib
, libsoup
, libxml2
, gobject-introspection
2022-02-20 18:58:50 +00:00
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_412
, gnome
}:
2018-12-25 16:45:11 +00:00
stdenv.mkDerivation rec {
2018-03-03 01:26:34 +00:00
pname = "rest";
version = "0.8.1";
2022-02-20 18:58:50 +00:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2017-12-03 23:03:55 +00:00
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
};
nativeBuildInputs = [
pkg-config
gobject-introspection
] ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
2022-02-20 18:58:50 +00:00
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_412
];
propagatedBuildInputs = [
glib
libsoup
libxml2
];
configureFlags = [
(lib.enableFeature (stdenv.hostPlatform == stdenv.buildPlatform) "gtk-doc")
# Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
"--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
];
2018-03-03 01:26:34 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-03 01:26:34 +00:00
packageName = pname;
2018-12-25 16:45:11 +00:00
attrPath = "librest";
versionPolicy = "odd-unstable";
freeze = true;
2018-03-03 01:26:34 +00:00
};
};
meta = with lib; {
2018-12-25 16:45:11 +00:00
description = "Helper library for RESTful services";
homepage = "https://wiki.gnome.org/Projects/Librest";
license = licenses.lgpl21Only;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}