Commit Graph

24 Commits

Author SHA1 Message Date
6t8k
ef0b88ac3c
pngquant: 2.17.0 -> 3.0.3
https://github.com/kornelski/pngquant/blob/3.0.3/CHANGELOG

Since 3.0.0, pngquant uses libimagequant 4.x, which is a Rust rewrite,
and and switches the build system from make to Cargo. The `pngquant`
executable is now a Rust wrapper around `pngquant.c`, which in turn
interfaces with libimagequant via the `imagequant_sys` crate, which
exports a C API.[1] The CLI seems unchanged.

Upstream lacks a Cargo.lock[2], so I generated one and patched it in.

Set `doCheck = false;` as there are no Rust-based tests. `test/` was
previously part of the make-based workflow (which is gone with pngquant
3.x) and looks like it isn't meant for pngquant 3.x anyway (as `test.sh`
executes `$BIN --version 2>&1 | fgrep 2.`).

`$ nix build .#pkgsCross.raspberryPi.pngquant` succeeds[3]; remove the
workaround originally introduced in [4].

Notes on dependencies:

- While nixpkgs package libimagequant on its own, pngquant depends on a
  specific vendored version

- pngquant 3.x depends on the libpng-sys and lcms2-sys crates, which
  provide bindings to the respective C libraries. If those are not
  provided by the system at build time, vendored versions of them will
  be built and statically linked; libpng 1.6.37 and LCMS 2.15,
  respectively

[1] See also: https://github.com/kornelski/pngquant/issues/368#issuecomment-1542507114
[2] See also: https://github.com/kornelski/pngquant/issues/347
[3] New SSE flag decision logic: https://github.com/kornelski/pngquant/blob/3.0.3/rust/build.rs#L31
[4] https://github.com/NixOS/nixpkgs/pull/145672
2023-11-17 00:51:57 +01:00
Solène Rapenne
b55d20d7c4 treewide: remove myself as maintainer 2023-11-03 18:09:17 +01:00
Robert Schütz
bb96340e6b pngquant: set meta.mainProgram 2023-09-28 09:46:15 -07:00
Solene Rapenne
5a08000cad pngquant: add srapenne as maintainer 2022-10-04 22:38:42 +02:00
ajs124
a0718341e6 maintainers: remove volth
github account deleted
2022-06-29 00:52:12 +02:00
R. Ryantm
5907a6bba3 pngquant: 2.16.0 -> 2.17.0 2021-12-08 12:12:27 +00:00
Ryan Burns
2175b157ac treewide: refactor isi686 && isx86_64 -> isx86 2021-11-20 17:50:41 -08:00
Nikolay Korotkiy
1493e60f77
pngquant: fix cross-compilation 2021-11-12 22:10:58 +03:00
Daniel Nagy
f466e9337c
pngquant: 2.14.1 -> 2.16.0 2021-09-29 16:04:36 +02:00
Mario Rodas
8b0515eb9a
pngquant: 2.12.5 -> 2.14.1 (#121470) 2021-05-02 23:59:08 +02:00
Ben Siraphob
d6aeae8f90 pkgs/tools: pkgconfig -> pkg-config (2) 2021-01-17 23:27:27 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Will Dietz
21c0acbd80
pngquant: 2.12.1 -> 2.12.5
Looks like libimagequant is already at 2.12.5
2019-09-03 20:28:57 -05:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
volth
8326b4c519
pngquant: 2.11.7 -> 2.12.1 2018-07-04 21:15:50 +00:00
volth
06f9b25af3
pngquant: 2.9.1 -> 2.11.7
maintenance
2018-02-18 18:57:16 +00:00
Alexei Boronine
dda4457eb1 pngquant: change platforms from linux to unix 2018-01-19 17:13:23 +01:00
John Ericson
531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00
Volth
a51663f9da pngquant: restored 'patchShebangs' because build failed on Hydra 2017-05-08 16:08:37 +03:00
Volth
76b5d53067 pngquant: 2.6.0 -> 2.9.1 2017-05-05 10:54:21 +00:00
Eelco Dolstra
da390a48db pngquant: 2.0.1 -> 2.6.0
Also remove meta.broken.
2016-03-18 22:13:57 +01:00
Eelco Dolstra
8a7f3c3618 Mark a bunch of packages as broken or not supported on Darwin 2014-08-08 17:59:02 +02:00
Jaka Hudoklin
24f0eccaa8 Add pngquant, it converts 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved. 2013-10-30 11:30:49 +01:00