Files
objdetect-nix/default.nix
2025-12-30 14:07:14 +03:00

24 lines
472 B
Nix

{pkgs ? import <nixpkgs> {}, ...}:
let
unilldSrc = builtins.fetchGit {
url = "https://git.emin.engineer/haxala1r/unildd.git";
ref = "nix";
};
unilld = import unilldSrc {inherit pkgs;};
in
pkgs.buildGoModule {
pname = "objdetect";
version = "";
vendorHash = null; # no go dependencies.
src = pkgs.lib.cleanSource ./.;
buildInputs = [unilld];
#CGO_ENABLED = 1;
preBuild = ''
ln -s ${unilld}/lib/ ./lib
ln -s ${unilld}/include/ ./include
'';
}