Skip to content

Instantly share code, notes, and snippets.

@PerchunPak
Created May 31, 2024 15:36
Show Gist options
  • Save PerchunPak/dc92e548ac5e3fc19e655eebf371b0c0 to your computer and use it in GitHub Desktop.
Save PerchunPak/dc92e548ac5e3fc19e655eebf371b0c0 to your computer and use it in GitHub Desktop.
Nixpkgs unstable (24.04) Pillow 9.5.0 overlay
# built for https://github.com/NixOS/nixpkgs/commit/9ca3f649614213b2aaf5f1e16ec06952fe4c2632
import <nixpkgs> {
config.packageOverrides = prev: {
python311 = prev.python311.override {
packageOverrides = pyfinal: pyprev: {
pillow = pyprev.pillow.overridePythonAttrs rec {
version = "9.5.0";
format = "setuptools";
src = prev.fetchPypi {
inherit version;
pname = "Pillow";
hash = "sha256-v1SEedM2cm16Ds6252fhefveN4M65CeUYCYxoHDWMPE=";
};
patches = (pyprev.pillow.patches or [ ]) ++ [
(prev.fetchpatch {
# Fixed type handling for include and lib directories; Remove with 10.0.0
url = "https://github.com/python-pillow/Pillow/commit/0ec0a89ead648793812e11739e2a5d70738c6be5.patch";
hash = "sha256-m5R5fLflnbJXbRxFlTjT2X3nKdC05tippMoJUDsJmy0=";
})
(prev.fetchpatch {
# nixpkgs updated one of the dependencies and this is a fix for new version of it
url = "https://github.com/python-pillow/Pillow/commit/0e523d986858e7c0b4acd45ea1c5a3a639e39b4b.patch";
hash = "sha256-wacXxS7s/os7l87m32l0iFHhtvzNU4fW1KFtYneEL+I=";
})
];
};
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment