nixos-config/pkgs/backscrub/default.nix

18 lines
535 B
Nix
Raw Normal View History

2021-12-06 09:58:39 +01:00
{ stdenv, fetchFromGitHub, cmake, opencv, gcc, curl, git, tensorflow-lite, flatbuffers }:
stdenv.mkDerivation {
name = "backscrub";
pname = "backscrub";
src = fetchFromGitHub {
owner = "floe";
repo = "backscrub";
rev = "6fc5d8d6c022ad38f98d90a24b861f12a8773a47";
fetchSubmodules = false;
sha256 = "14gd77m7dy0wg15y0i8zhki8cm7np2spx7yi162b2xqaav04b1cj";
};
nativeBuildInputs = [ gcc cmake git ];
buildInputs = [ opencv curl tensorflow-lite flatbuffers ];
patches = [ ./fix-cmake-for-nixos.patch ];
}