1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 15:11:03 +01:00
home-manager/tests/modules/programs/go/packages-custom-gopath.nix

22 lines
450 B
Nix

{ config, ... }:
{
programs.go = {
enable = true;
env.GOPATH = [
"${config.home.homeDirectory}/mygo"
"/another/go"
"/yet/another/go"
];
packages = {
"golang.org/x/text" = ./packages/text;
"golang.org/x/time" = ./packages/time;
};
};
nmt.script = ''
assertFileExists home-files/mygo/src/golang.org/x/text/main.go
assertFileExists home-files/mygo/src/golang.org/x/time/main.go
'';
}