2018-02-25 03:23:58 +01:00
|
|
|
{ stdenv, fetchurl, vala, libxslt, pkgconfig, glib, dbus-glib, gnome3
|
2016-09-18 21:35:23 +02:00
|
|
|
, libxml2, intltool, docbook_xsl_ns, docbook_xsl, makeWrapper }:
|
|
|
|
|
|
|
|
let
|
2018-03-03 02:29:38 +01:00
|
|
|
pname = "dconf";
|
2016-09-18 21:35:23 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 02:29:38 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "0.26.1";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-03 02:29:38 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2017-12-04 00:29:18 +01:00
|
|
|
sha256 = "0da587hpiqy8h3pswn1102h4b905x8k6mk3ajpi7kf4kzkvv30ym";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2017-03-20 18:15:54 +01:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
|
2017-10-10 22:24:04 +02:00
|
|
|
nativeBuildInputs = [ vala pkgconfig intltool libxslt libxml2 docbook_xsl docbook_xsl_ns makeWrapper ];
|
2018-02-25 03:23:58 +01:00
|
|
|
buildInputs = [ glib dbus-glib ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-04-20 23:40:43 +02:00
|
|
|
postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace client/Makefile \
|
|
|
|
--replace "-soname=libdconf.so.1" "-install_name,libdconf.so.1"
|
|
|
|
'';
|
|
|
|
|
2018-03-03 02:29:38 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-03 02:29:38 +01:00
|
|
|
homepage = https://wiki.gnome.org/Projects/dconf;
|
|
|
|
license = licenses.lgpl21Plus;
|
2017-04-20 23:40:43 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-09-18 21:35:23 +02:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|