Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 54 lines 1.6 kB view raw
1{ stdenv, fetchurl, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig 2, freetype, libid3tag 3, x11Support ? true, xlibsWrapper ? null }: 4 5with stdenv.lib; 6 7stdenv.mkDerivation rec { 8 name = "imlib2-1.4.10"; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/enlightenment/${name}.tar.bz2"; 12 sha256 = "0wm2q2xlkbm71k7mw2jyzbxgzylrkcj5yh6nq58w5gybhp98qs9z"; 13 }; 14 15 buildInputs = [ libjpeg libtiff giflib libpng bzip2 freetype libid3tag ] 16 ++ optional x11Support xlibsWrapper; 17 18 nativeBuildInputs = [ pkgconfig ]; 19 20 enableParallelBuilding = true; 21 22 preConfigure = '' 23 substituteInPlace imlib2-config.in \ 24 --replace "@my_libs@" "" 25 ''; 26 27 # Do not build amd64 assembly code on Darwin, because it fails to compile 28 # with unknow directive errors 29 configureFlags = optional stdenv.isDarwin "--enable-amd64=no" 30 ++ optional (!x11Support) "--without-x"; 31 32 outputs = [ "bin" "out" "dev" ]; 33 34 postInstall = '' 35 moveToOutput bin/imlib2-config "$dev" 36 ''; 37 38 meta = { 39 description = "Image manipulation library"; 40 41 longDescription = '' 42 This is the Imlib 2 library - a library that does image file loading and 43 saving as well as rendering, manipulation, arbitrary polygon support, etc. 44 It does ALL of these operations FAST. Imlib2 also tries to be highly 45 intelligent about doing them, so writing naive programs can be done 46 easily, without sacrificing speed. 47 ''; 48 49 homepage = http://docs.enlightenment.org/api/imlib2/html; 50 license = licenses.free; 51 platforms = platforms.unix; 52 maintainers = with maintainers; [ spwhitt ]; 53 }; 54}