Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b2fd239c3f
|
23
default.nix
Normal file
23
default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user