1{ haskell, haskellPackages, lib, runCommand }:
2
3let
4 dconf2nix =
5 haskell.lib.compose.justStaticExecutables
6 (haskell.lib.compose.overrideCabal (oldAttrs: {
7 maintainers = (oldAttrs.maintainers or []) ++ [
8 lib.maintainers.gvolpe
9 ];
10 }) haskellPackages.dconf2nix);
11in
12
13dconf2nix.overrideAttrs (oldAttrs: {
14 passthru = (oldAttrs.passthru or {}) // {
15 updateScript = ./update.sh;
16
17 # These tests can be run with the following command.
18 #
19 # $ nix-build -A dconf2nix.passthru.tests
20 tests =
21 runCommand
22 "dconf2nix-tests"
23 {
24 nativeBuildInputs = [
25 dconf2nix
26 ];
27 }
28 ''
29 dconf2nix > $out
30 '';
31 };
32})