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