nixpkgs/pkgs/desktops/gnome-3/core/dconf/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, vala, libxslt, pkgconfig, glib, dbus-glib, gnome3
, libxml2, intltool, docbook_xsl_ns, docbook_xsl, makeWrapper }:
let
2018-03-03 02:29:38 +01:00
pname = "dconf";
in
stdenv.mkDerivation rec {
2018-03-03 02:29:38 +01:00
name = "${pname}-${version}";
version = "0.26.1";
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";
};
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 ];
buildInputs = [ glib dbus-glib ];
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}";
};
};
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;
maintainers = gnome3.maintainers;
};
}