tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
frugally_deep: init at 0.15.24-p0
Madoura
2 years ago
68c23723
691b69fd
+55
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
frugally-deep
default.nix
top-level
all-packages.nix
+53
pkgs/development/libraries/frugally-deep/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, gitUpdater
5
5
+
, cmake
6
6
+
, functionalplus
7
7
+
, eigen
8
8
+
, nlohmann_json
9
9
+
, doctest
10
10
+
, python3Packages
11
11
+
, buildTests ? false # Needs tensorflow
12
12
+
}:
13
13
+
14
14
+
stdenv.mkDerivation (finalAttrs: {
15
15
+
pname = "frugally-deep";
16
16
+
version = "0.15.24-p0";
17
17
+
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "Dobiasd";
20
20
+
repo = "frugally-deep";
21
21
+
rev = "v${finalAttrs.version}";
22
22
+
hash = "sha256-yg2SMsYOOSOgsdwIH1bU3iPM45z6c7WeIrgOddt3um4=";
23
23
+
};
24
24
+
25
25
+
nativeBuildInputs = [
26
26
+
cmake
27
27
+
] ++ lib.optionals buildTests [
28
28
+
python3Packages.python
29
29
+
python3Packages.numpy
30
30
+
];
31
31
+
32
32
+
buildInputs = lib.optionals buildTests [
33
33
+
doctest
34
34
+
python3Packages.tensorflow
35
35
+
];
36
36
+
37
37
+
propagatedBuildInputs = [
38
38
+
functionalplus
39
39
+
eigen
40
40
+
nlohmann_json
41
41
+
];
42
42
+
43
43
+
cmakeFlags = lib.optionals buildTests [ "-DFDEEP_BUILD_UNITTEST=ON" ];
44
44
+
passthru.updateScript = gitUpdater;
45
45
+
46
46
+
meta = with lib; {
47
47
+
description = "Header-only library for using Keras (TensorFlow) models in C++";
48
48
+
homepage = "https://github.com/Dobiasd/frugally-deep";
49
49
+
license = with licenses; [ mit ];
50
50
+
maintainers = with maintainers; [ Madouura ];
51
51
+
platforms = platforms.linux;
52
52
+
};
53
53
+
})
+2
pkgs/top-level/all-packages.nix
···
685
685
686
686
frugal = callPackage ../development/tools/frugal { };
687
687
688
688
+
frugally-deep = callPackage ../development/libraries/frugally-deep { };
689
689
+
688
690
functiontrace-server = callPackage ../development/tools/functiontrace-server { };
689
691
690
692
gendef = callPackage ../development/tools/gendef { };