Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 27e8a7945b05
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2b922a8d0d3f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 5, 2017

  1. pngquant: 2.6.0 -> 2.9.1

    Volth committed May 5, 2017
    Copy the full SHA
    76b5d53 View commit details

Commits on May 7, 2017

  1. Merge pull request #25532 from volth/pngquant-2.9.1

    pngquant: 2.6.0 -> 2.9.1
    joachifm authored May 7, 2017

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    2b922a8 View commit details
Showing with 9 additions and 15 deletions.
  1. +9 −15 pkgs/tools/graphics/pngquant/default.nix
24 changes: 9 additions & 15 deletions pkgs/tools/graphics/pngquant/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
{ stdenv, fetchFromGitHub, pkgconfig, libpng, zlib, lcms2 }:
{ stdenv, fetchgit, pkgconfig, libpng, zlib, lcms2 }:

stdenv.mkDerivation rec {
name = "pngquant-${version}";
version = "2.6.0";
version = "2.9.1";

src = fetchFromGitHub {
owner = "pornel";
repo = "pngquant";
rev = version;
sha256 = "0sdh9cz330rhj6xvqk3sdhy0393qwyl349klk9r55g88rjp774s5";
src = fetchgit {
url = "https://www.github.com/pornel/pngquant.git";
rev = "refs/tags/${version}";
sha256 = "0xhnrjsk55jy5q68f81y7l61c6x18i4fzkm3i4dgndrhri5g4n1q";
fetchSubmodules = true;
};

preConfigure = "patchShebangs .";

buildInputs = [ pkgconfig libpng zlib lcms2 ];

preInstall = ''
mkdir -p $out/bin
export PREFIX=$out
'';

meta = with stdenv.lib; {
homepage = https://pngquant.org/;
description = "A tool to convert 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved";
platforms = platforms.linux;
license = licenses.bsd2; # Not exactly bsd2, but alike
license = licenses.gpl3;
maintainers = [ maintainers.volth ];
};
}