packages/dream2nix-overrides: use version-gated vips 8.12.2
This commit is contained in:
parent
63d1cca14a
commit
ad317c7fa0
1 changed files with 24 additions and 1 deletions
|
@ -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; {
|
||||
nativeBuildInputs = old: old ++ [
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = old: old ++ [
|
||||
vips
|
||||
vips_8_12_2
|
||||
];
|
||||
};
|
||||
ghost.build = {
|
||||
|
|
Loading…
Reference in a new issue