summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2019-11-14 02:36:30 +0100
committerSilvan Mosberger <contact@infinisil.com>2019-11-14 02:36:30 +0100
commit3f0082d57943db6fbdc934c1ff0211060917eb94 (patch)
tree488428aaa98db68a55d53a07f68046ad19cc298f /pkgs/tools/graphics
parente3b76760e38912e5b3298dfc19f9c75e7ed2ffd9 (diff)
downloadnixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.tar
nixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.tar.gz
nixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.tar.bz2
nixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.tar.lz
nixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.tar.xz
nixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.tar.zst
nixpkgs-3f0082d57943db6fbdc934c1ff0211060917eb94.zip
jpegexiforient: init at unstable-2002-02-17
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/jpegexiforient/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/jpegexiforient/default.nix b/pkgs/tools/graphics/jpegexiforient/default.nix
new file mode 100644
index 00000000000..9397f46fd2c
--- /dev/null
+++ b/pkgs/tools/graphics/jpegexiforient/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, fetchurl }:
+stdenv.mkDerivation {
+  pname = "jpegexiforient";
+  version = "unstable-2002-02-17";
+  src = fetchurl {
+    url = "http://sylvana.net/jpegcrop/jpegexiforient.c";
+    sha256 = "1v0f42cvs0397g9v46p294ldgxwbp285npg6npgnlnvapk6nzh5s";
+  };
+  unpackPhase = ''
+    cp $src jpegexiforient.c
+  '';
+  buildPhase = ''
+    cc -o jpegexiforient jpegexiforient.c
+  '';
+  installPhase = ''
+    install -Dt $out/bin jpegexiforient
+  '';
+  meta = with lib; {
+    description = "Utility program to get and set the Exif Orientation Tag";
+    homepage = "http://sylvana.net/jpegcrop/exif_orientation.html";
+    # Website doesn't mention any license, but I think it's safe to assume this
+    # to be free since it's from IJG, the current maintainers of libjpeg
+    license = licenses.free;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ infinisil ];
+  };
+}