packages/dream2nix-overrides: use version-gated vips 8.12.2

This commit is contained in:
Max Headroom 2022-03-13 01:45:15 +01:00
parent 63d1cca14a
commit ad317c7fa0

View file

@ -7,13 +7,36 @@
... ...
}: }:
let
versionGate = pkg: target:
assert
lib.assertMsg (lib.versionAtLeast target.version pkg.version)
"${pkg.name} has reached the desired version upstream";
target;
vips_8_12_2' = pkgs.vips.overrideAttrs (_: {
version = "8.12.2";
src = pkgs.fetchFromGitHub {
owner = "libvips";
repo = "libvips";
rev = "v8.12.2";
sha256 = "sha256-ffDJJWe/SzG+lppXEiyfXXL5KLdZgnMjv1SYnuYnh4c=";
extraPostFetch = ''
rm -r $out/test/test-suite/images/
'';
};
});
vips_8_12_2 = versionGate pkgs.vips vips_8_12_2';
in
{ {
sharp.build = with pkgs; { sharp.build = with pkgs; {
nativeBuildInputs = old: old ++ [ nativeBuildInputs = old: old ++ [
pkg-config pkg-config
]; ];
buildInputs = old: old ++ [ buildInputs = old: old ++ [
vips vips_8_12_2
]; ];
}; };
ghost.build = { ghost.build = {