nixos-config/pkgs/backscrub/default.nix

28 lines
545 B
Nix
Raw Normal View History

{ 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";
};
nativeBuildInputs = [ gcc cmake git ];
buildInputs = [ opencv curl tensorflow-lite flatbuffers ];
patches = [ ./fix-cmake-for-nixos.patch ];
2021-12-06 09:58:39 +01:00
}