2020-08-20 17:08:02 +00:00
|
|
|
{ haskell, haskellPackages, lib, runCommand }:
|
|
|
|
|
|
|
|
let
|
|
|
|
dconf2nix =
|
2021-12-06 16:07:01 +00:00
|
|
|
haskell.lib.compose.justStaticExecutables
|
|
|
|
(haskell.lib.compose.overrideCabal (oldAttrs: {
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = (oldAttrs.maintainers or []) ++ [
|
|
|
|
lib.maintainers.gvolpe
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
}) haskellPackages.dconf2nix);
|
2020-08-20 17:08:02 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
dconf2nix.overrideAttrs (oldAttrs: {
|
|
|
|
passthru = (oldAttrs.passthru or {}) // {
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
|
|
|
|
# These tests can be run with the following command.
|
|
|
|
#
|
|
|
|
# $ nix-build -A dconf2nix.passthru.tests
|
|
|
|
tests =
|
|
|
|
runCommand
|
|
|
|
"dconf2nix-tests"
|
|
|
|
{
|
|
|
|
nativeBuildInputs = [
|
|
|
|
dconf2nix
|
|
|
|
];
|
|
|
|
}
|
|
|
|
''
|
|
|
|
dconf2nix > $out
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
})
|