Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 32 lines 834 B view raw
1{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, openblas, libpng, libjpeg 2, guiSupport ? false, libX11 3}: 4 5stdenv.mkDerivation rec { 6 version = "19.9"; 7 name = "dlib-${version}"; 8 9 src = fetchFromGitHub { 10 owner = "davisking"; 11 repo = "dlib"; 12 rev ="v${version}"; 13 sha256 = "0lc54r928j9dg7f2wn25m887z24d31wrc14v2hn6aknp1z084lrc"; 14 }; 15 16 postPatch = '' 17 rm -rf dlib/external 18 ''; 19 20 enableParallelBuilding = true; 21 nativeBuildInputs = [ cmake pkgconfig ]; 22 buildInputs = [ openblas libpng libjpeg ] ++ lib.optional guiSupport libX11; 23 24 meta = with stdenv.lib; { 25 description = "A general purpose cross-platform C++ machine learning library"; 26 homepage = http://www.dlib.net; 27 license = licenses.boost; 28 maintainers = with maintainers; [ christopherpoole ]; 29 platforms = platforms.linux; 30 }; 31} 32