lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python313Packages.pylibjpeg-libjpeg: unvendor libjpeg source (#434557)

authored by

Peder Bergebakken Sundt and committed by
GitHub
7f6c162b a25aac7a

+55 -2
+50
pkgs/by-name/li/libjpeg-tools/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + }: 6 + 7 + stdenv.mkDerivation (finalAttrs: { 8 + pname = "libjpeg-tools"; 9 + version = "1.71"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "thorfdbg"; 13 + repo = "libjpeg"; 14 + rev = "25f71280913fde7400801772bbf885bb3e873242"; 15 + hash = "sha256-40yb9EujJp9y1PnuYLcPxK31Kj2Q4UQ5YBwXQFYXI/Y="; 16 + }; 17 + 18 + outputs = [ 19 + "out" 20 + "lib" 21 + ]; 22 + 23 + buildPhase = '' 24 + runHook preBuild 25 + make lib 26 + make final 27 + runHook postBuild 28 + ''; 29 + 30 + installPhase = '' 31 + runHook preInstall 32 + install -m755 -D jpeg $out/bin/jpeg 33 + install -m644 -D libjpeg.so $lib/lib/libjpeg 34 + runHook postInstall 35 + ''; 36 + 37 + doCheck = false; # no tests 38 + 39 + meta = { 40 + description = "A complete implementation of 10918-1 (JPEG) coming from jpeg.org (the ISO group) with extensions for HDR, lossless and alpha channel coding standardized as ISO/IEC 18477 (JPEG XT)"; 41 + homepage = "https://github.com/thorfdbg/libjpeg"; 42 + license = with lib.licenses; [ gpl3 ]; 43 + changelog = "https://github.com/thorfdbg/libjpeg/README.history"; 44 + maintainers = with lib.maintainers; [ bcdarwin ]; 45 + platforms = lib.platforms.unix; 46 + mainProgram = "jpeg"; 47 + # clang build fails with "ld: symbol(s) not found for architecture arm64" (on aarch64-darwin) 48 + broken = stdenv.hostPlatform.isDarwin; 49 + }; 50 + })
+5 -2
pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix
··· 11 11 pydicom, 12 12 pylibjpeg-data, 13 13 pylibjpeg, 14 + libjpeg-tools, 14 15 }: 15 16 16 17 let ··· 25 26 owner = "pydicom"; 26 27 repo = "pylibjpeg-libjpeg"; 27 28 tag = "v${self.version}"; 28 - hash = "sha256-xqSA1cutTsH9k4l9CW96n/CURzkAyDi3PZylZeedVjA="; 29 - fetchSubmodules = true; 29 + hash = "sha256-P01pofPLTOa5ynsCkLnxiMzVfCg4tbT+/CcpPTeSViw="; 30 30 }; 31 31 32 32 postPatch = '' 33 33 substituteInPlace pyproject.toml \ 34 34 --replace-fail 'poetry-core >=1.8,<2' 'poetry-core' 35 + rmdir lib/libjpeg 36 + cp -r ${libjpeg-tools.src} lib/libjpeg 37 + chmod u+w lib/libjpeg 35 38 ''; 36 39 37 40 build-system = [