nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "zinnia";
9 version = "2016-08-28";
10
11 src = fetchFromGitHub {
12 owner = "taku910";
13 repo = "zinnia";
14 rev = "fd74d8c8680bb3df8692279151ea6339ab68e32b";
15 sha256 = "1izjy5qw6swg0rs2ym2i72zndb90mwrfbd1iv8xbpwckbm4899lg";
16 };
17
18 sourceRoot = "${finalAttrs.src.name}/zinnia";
19
20 patches = [
21 # Fixes the following error on darwin:
22 # svm.cpp:50:10: error: no member named 'random_shuffle' in namespace 'std'
23 ./remove-random-shuffle-usage.patch
24 ];
25
26 meta = {
27 description = "Online hand recognition system with machine learning";
28 homepage = "http://taku910.github.io/zinnia/";
29 license = lib.licenses.bsd2;
30 platforms = lib.platforms.unix;
31 maintainers = [ ];
32 };
33})