Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 835 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 gtk2, 7 imlib2, 8 file, 9 lcms2, 10 libexif, 11}: 12 13stdenv.mkDerivation (rec { 14 version = "2.3.3"; 15 pname = "qiv"; 16 17 src = fetchurl { 18 url = "https://spiegl.de/qiv/download/${pname}-${version}.tgz"; 19 sha256 = "sha256-7whf/eLUiwWzZlk55a4eNZ06OBAI+4J2hPfW/UxTNwQ="; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ 24 gtk2 25 imlib2 26 file 27 lcms2 28 libexif 29 ]; 30 31 preBuild = '' 32 substituteInPlace Makefile --replace /usr/local "$out" 33 substituteInPlace Makefile --replace /man/ /share/man/ 34 substituteInPlace Makefile --replace /share/share/ /share/ 35 ''; 36 37 meta = with lib; { 38 description = "Quick image viewer"; 39 homepage = "http://spiegl.de/qiv/"; 40 license = licenses.gpl2; 41 platforms = platforms.linux; 42 mainProgram = "qiv"; 43 }; 44})