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;
|
2024-07-09 21:32:01 +02:00
|
|
|
hash = "sha256-koVFwFYKd7GECdGffrW49lSG4oQfReBLeBz4duo57ZE=";
|
2021-12-06 09:58:39 +01:00
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|