40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, fetchurl, vala, libxslt, pkgconfig, glib, dbus-glib, gnome3
|
|
, libxml2, intltool, docbook_xsl_ns, docbook_xsl, makeWrapper }:
|
|
|
|
let
|
|
pname = "dconf";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
version = "0.28.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
|
sha256 = "0hn7v6769xabqz7kvyb2hfm19h46z1whkair7ff752zmbs3b7lv1";
|
|
};
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
nativeBuildInputs = [ vala pkgconfig intltool libxslt libxml2 docbook_xsl docbook_xsl_ns makeWrapper ];
|
|
buildInputs = [ glib dbus-glib ];
|
|
|
|
postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace client/Makefile \
|
|
--replace "-soname=libdconf.so.1" "-install_name,libdconf.so.1"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://wiki.gnome.org/Projects/dconf;
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = gnome3.maintainers;
|
|
};
|
|
}
|