nixos-config/pkgs/backscrub/default.nix

36 lines
583 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;
hash = "sha256-koVFwFYKd7GECdGffrW49lSG4oQfReBLeBz4duo57ZE=";
};
nativeBuildInputs = [
gcc
cmake
git
];
buildInputs = [
opencv
curl
tensorflow-lite
flatbuffers
];
patches = [ ./fix-cmake-for-nixos.patch ];
}