mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
33 lines
730 B
Nix
33 lines
730 B
Nix
{ haskell, haskellPackages, lib, runCommand }:
|
|
|
|
let
|
|
dconf2nix =
|
|
haskell.lib.compose.justStaticExecutables
|
|
(haskell.lib.compose.overrideCabal (oldAttrs: {
|
|
maintainers = (oldAttrs.maintainers or []) ++ [
|
|
lib.maintainers.gvolpe
|
|
];
|
|
}) haskellPackages.dconf2nix);
|
|
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
|
|
'';
|
|
};
|
|
})
|