modules/nixpkgs: add image-roll overlay to fix failed tests

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-20 23:32:02 +03:00
parent f1f8b4f01e
commit 9510653d50
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -29,6 +29,19 @@ in
(pkg: elem (lib.getName pkg) cfg.allowUnfreePackages);
nixpkgs.overlays = lib.mkBefore [
(final: prev: {
image-roll = prev.image-roll.override {
rustPlatform = prev.rustPlatform // {
buildRustPackage = args:
prev.rustPlatform.buildRustPackage (args // {
checkFlags = args.checkFlags ++ [
# Image type “ico” is not supported
"--skip=image::tests::save_image_uses_extensions_for_file_types_supported_by_pixbuf_save"
];
});
};
};
})
(final: prev: {
unstable = import inputs.nixpkgs-unstable {
inherit (config.nixpkgs) config overlays system;