27 lines
545 B
Nix
27 lines
545 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 = "9de1512e191d67f9b7451447cc232b56e8666907";
|
|
fetchSubmodules = false;
|
|
sha256 = "14gd77m7dy0wg15y0i8zhki8cm7np2spx7yi162b2xqaav04b1cj";
|
|
};
|
|
|
|
nativeBuildInputs = [ gcc cmake git ];
|
|
buildInputs = [ opencv curl tensorflow-lite flatbuffers ];
|
|
patches = [ ./fix-cmake-for-nixos.patch ];
|
|
}
|