17 lines
535 B
Nix
17 lines
535 B
Nix
{ stdenv, fetchFromGitHub, cmake, opencv, gcc, curl, git, tensorflow-lite, flatbuffers }:
|
|
stdenv.mkDerivation {
|
|
name = "backscrub";
|
|
pname = "backscrub";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "floe";
|
|
repo = "backscrub";
|
|
rev = "6fc5d8d6c022ad38f98d90a24b861f12a8773a47";
|
|
fetchSubmodules = false;
|
|
sha256 = "14gd77m7dy0wg15y0i8zhki8cm7np2spx7yi162b2xqaav04b1cj";
|
|
};
|
|
|
|
nativeBuildInputs = [ gcc cmake git ];
|
|
buildInputs = [ opencv curl tensorflow-lite flatbuffers ];
|
|
patches = [ ./fix-cmake-for-nixos.patch ];
|
|
}
|