lib/builders: prototype dconf builder function

This commit is contained in:
Gabriel Arazas 2024-12-27 10:58:51 +08:00
parent 292d3464f7
commit 2fbcf3d2e7
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# A standalone version of the dconf profile generation build step based from
# the nixpkgs' NixOS dconf module.
{ lib, runCommand, dconf }:
{ dir, name ? baseNameOf dir, keyfiles, profile }@args:
runCommand "dconf-${name}" {
nativeBuildInputs = [ (lib.getBin dconf) ];
} "dconf compile $out ${dir}"

View File

@ -9,4 +9,5 @@
buildHugoSite = pkgs.callPackage ./hugo-build-site { };
buildFDSEnv =
pkgs.callPackage ./build-fds-env.nix { extendedStdenv = self.stdenv; };
buildDconfDb = pkgs.callPackage ./build-dconf-db.nix { };
}

View File

@ -39,7 +39,7 @@ in pkgs.lib.makeExtensible (self:
inherit (self.builders)
makeXDGMimeAssociationList makeXDGPortalConfiguration makeXDGDesktopEntry
buildHugoSite buildFDSEnv;
buildHugoSite buildFDSEnv buildDconfDb;
inherit (self.trivial) countAttrs filterAttrs';
inherit (self.data) importYAML renderTeraTemplate renderMustacheTemplate;
inherit (self.fetchers) fetchInternetArchive fetchUgeeDriver;