Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 27 lines 887 B view raw
1{ lib, stdenv, fetchurl }: 2stdenv.mkDerivation { 3 pname = "jpegexiforient"; 4 version = "unstable-2002-02-17"; 5 src = fetchurl { 6 url = "http://sylvana.net/jpegcrop/jpegexiforient.c"; 7 sha256 = "1v0f42cvs0397g9v46p294ldgxwbp285npg6npgnlnvapk6nzh5s"; 8 }; 9 unpackPhase = '' 10 cp $src jpegexiforient.c 11 ''; 12 buildPhase = '' 13 $CC -o jpegexiforient jpegexiforient.c 14 ''; 15 installPhase = '' 16 install -Dt $out/bin jpegexiforient 17 ''; 18 meta = with lib; { 19 description = "Utility program to get and set the Exif Orientation Tag"; 20 homepage = "http://sylvana.net/jpegcrop/exif_orientation.html"; 21 # Website doesn't mention any license, but I think it's safe to assume this 22 # to be free since it's from IJG, the current maintainers of libjpeg 23 license = licenses.free; 24 platforms = platforms.all; 25 maintainers = with maintainers; [ infinisil ]; 26 }; 27}