about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libimagequant
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libimagequant')
-rw-r--r--nixpkgs/pkgs/development/libraries/libimagequant/default.nix47
1 files changed, 22 insertions, 25 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libimagequant/default.nix b/nixpkgs/pkgs/development/libraries/libimagequant/default.nix
index ccd52f81d111..83afd26bf1d3 100644
--- a/nixpkgs/pkgs/development/libraries/libimagequant/default.nix
+++ b/nixpkgs/pkgs/development/libraries/libimagequant/default.nix
@@ -1,29 +1,26 @@
-{ stdenv, fetchFromGitHub, unzip }:
+{ stdenv, fetchFromGitHub }:
 
-with stdenv;
+stdenv.mkDerivation rec {
+  pname = "libimagequant";
+  version = "2.12.3";
 
-let
-  version = "2.12.2";
-in
-  mkDerivation {
-    name = "libimagequant-${version}";
-    src = fetchFromGitHub {
-      owner = "ImageOptim";
-      repo = "libimagequant";
-      rev = "${version}";
-      sha256 = "1k61ifcjbp2lcrwqidflj99inkyhpbrw0hl1nzq1rjp5dnw2y5lw";
-    };
+  src = fetchFromGitHub {
+    owner = "ImageOptim";
+    repo = pname;
+    rev = version;
+    sha256 = "0qsfq1kv1m5jzn9v9iz0bac66k4clcis1c9877qabnwzwmwma5v0";
+  };
 
-    preConfigure = ''
-      patchShebangs ./configure
-    '';
+  preConfigure = ''
+    patchShebangs ./configure
+  '';
 
-    meta = {
-      homepage = https://pngquant.org/lib/;
-      description = "Image quantization library";
-      longDescription = "Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images.";
-      license = lib.licenses.gpl3Plus;
-      platforms = lib.platforms.unix;
-      maintainers = with lib.maintainers; [ ma9e ];
-    };
-  }
+  meta = with stdenv.lib; {
+    homepage = "https://pngquant.org/lib/";
+    description = "Image quantization library";
+    longDescription = "Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images.";
+    license = licenses.gpl3Plus;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ ma9e marsam ];
+  };
+}