2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
opencv,
|
|
|
|
gcc,
|
|
|
|
curl,
|
|
|
|
git,
|
|
|
|
tensorflow-lite,
|
|
|
|
flatbuffers,
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
2021-12-06 09:58:39 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "backscrub";
|
|
|
|
pname = "backscrub";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "floe";
|
|
|
|
repo = "backscrub";
|
2022-01-06 12:30:32 +01:00
|
|
|
rev = "9de1512e191d67f9b7451447cc232b56e8666907";
|
2021-12-06 09:58:39 +01:00
|
|
|
fetchSubmodules = false;
|
|
|
|
sha256 = "14gd77m7dy0wg15y0i8zhki8cm7np2spx7yi162b2xqaav04b1cj";
|
|
|
|
};
|
|
|
|
|
2024-02-05 11:46:52 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gcc
|
|
|
|
cmake
|
|
|
|
git
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
opencv
|
|
|
|
curl
|
|
|
|
tensorflow-lite
|
|
|
|
flatbuffers
|
|
|
|
];
|
2022-04-27 00:21:19 +02:00
|
|
|
patches = [ ./fix-cmake-for-nixos.patch ];
|
2021-12-06 09:58:39 +01:00
|
|
|
}
|