1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ depot, pkgs, ... }:
let
goDeps = import ../go-deps.nix { inherit depot pkgs; };
in
depot.nix.buildGo.external {
path = "avt-go";
src = pkgs.lib.cleanSourceWith {
src = ./.;
filter = path: type:
let base = builtins.baseNameOf path;
in type == "directory"
|| (pkgs.lib.hasSuffix ".go" base && !(pkgs.lib.hasSuffix "_test.go" base));
};
deps = [ goDeps.golang-x-text.width ];
}
|