Merge pull request #4408 from christopherpoole/dlib
Added the dlib machine learning library.
This commit is contained in:
commit
d5570b082d
@ -37,6 +37,7 @@
|
|||||||
cdepillabout = "Dennis Gosnell <cdep.illabout@gmail.com>";
|
cdepillabout = "Dennis Gosnell <cdep.illabout@gmail.com>";
|
||||||
cfouche = "Chaddaï Fouché <chaddai.fouche@gmail.com>";
|
cfouche = "Chaddaï Fouché <chaddai.fouche@gmail.com>";
|
||||||
chaoflow = "Florian Friesdorf <flo@chaoflow.net>";
|
chaoflow = "Florian Friesdorf <flo@chaoflow.net>";
|
||||||
|
christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>";
|
||||||
coconnor = "Corey O'Connor <coreyoconnor@gmail.com>";
|
coconnor = "Corey O'Connor <coreyoconnor@gmail.com>";
|
||||||
codyopel = "Cody Opel <codyopel@gmail.com>";
|
codyopel = "Cody Opel <codyopel@gmail.com>";
|
||||||
copumpkin = "Dan Peebles <pumpkingod@gmail.com>";
|
copumpkin = "Dan Peebles <pumpkingod@gmail.com>";
|
||||||
|
45
pkgs/development/libraries/dlib/default.nix
Normal file
45
pkgs/development/libraries/dlib/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv, fetchurl, cmake, x11 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "18.10";
|
||||||
|
name = "dlib-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/dclib/dlib/${name}.tar.bz2";
|
||||||
|
sha256 = "1g3v13azc29m5r7zqs3x0g731hny6spb66cxnra7f167z31ka3s7";
|
||||||
|
};
|
||||||
|
|
||||||
|
# The supplied CMakeLists.txt does not have any install targets.
|
||||||
|
sources_var = "\$\{sources\}";
|
||||||
|
headers_var = "\$\{hearders\}";
|
||||||
|
preConfigure = ''
|
||||||
|
cat << EOF > CMakeLists.txt
|
||||||
|
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
|
||||||
|
project(dlib)
|
||||||
|
|
||||||
|
include_directories(./)
|
||||||
|
|
||||||
|
file(GLOB sources ./dlib/all/*.cpp)
|
||||||
|
file(GLOB headers ./dlib/*.h)
|
||||||
|
|
||||||
|
SET(LIBRARY_OUTPUT_PATH ".")
|
||||||
|
add_library(dlib "SHARED" dlib/all/source.cpp ${sources_var} ${headers_var})
|
||||||
|
|
||||||
|
install(TARGETS dlib DESTINATION lib)
|
||||||
|
install(DIRECTORY dlib/ DESTINATION include/dlib FILES_MATCHING PATTERN "*.h")
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
buildInputs = [ cmake x11 ];
|
||||||
|
propagatedBuildInputs = [ x11 ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Dlib is a general purpose cross-platform C++ machine learning library.";
|
||||||
|
homepage = http://www.dlib.net;
|
||||||
|
license = stdenv.lib.licenses.boost;
|
||||||
|
maintainers = with maintainers; [ christopherpoole ];
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -4843,6 +4843,8 @@ let
|
|||||||
|
|
||||||
directfb = callPackage ../development/libraries/directfb { };
|
directfb = callPackage ../development/libraries/directfb { };
|
||||||
|
|
||||||
|
dlib = callPackage ../development/libraries/dlib { };
|
||||||
|
|
||||||
dotconf = callPackage ../development/libraries/dotconf { };
|
dotconf = callPackage ../development/libraries/dotconf { };
|
||||||
|
|
||||||
dssi = callPackage ../development/libraries/dssi {};
|
dssi = callPackage ../development/libraries/dssi {};
|
||||||
|
Loading…
Reference in New Issue
Block a user