diff --git a/pkgs/tools/graphics/jpegexiforient/default.nix b/pkgs/tools/graphics/jpegexiforient/default.nix new file mode 100644 index 000000000000..9397f46fd2c5 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3e17ee593cbd..dcf805fa4978 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4226,6 +4226,8 @@ in jpeg-archive = callPackage ../applications/graphics/jpeg-archive { }; + jpegexiforient = callPackage ../tools/graphics/jpegexiforient { }; + jpeginfo = callPackage ../applications/graphics/jpeginfo { }; jpegoptim = callPackage ../applications/graphics/jpegoptim { };