about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libjpeg
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libjpeg')
-rw-r--r--nixpkgs/pkgs/development/libraries/libjpeg/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libjpeg/default.nix b/nixpkgs/pkgs/development/libraries/libjpeg/default.nix
new file mode 100644
index 000000000000..6a6009c98e96
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libjpeg/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchurl, static ? false }:
+
+stdenv.mkDerivation rec {
+  pname = "libjpeg";
+  version = "9e";
+
+  src = fetchurl {
+    url = "http://www.ijg.org/files/jpegsrc.v${version}.tar.gz";
+    sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0=";
+  };
+
+  configureFlags = lib.optional static "--enable-static --disable-shared";
+
+  outputs = [ "bin" "dev" "out" "man" ];
+
+  meta = with lib; {
+    homepage = "https://www.ijg.org/";
+    description = "A library that implements the JPEG image file format";
+    maintainers = with maintainers; [ ];
+    license = licenses.free;
+    platforms = platforms.unix;
+  };
+}