2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-10-04 00:04:18 +00:00
|
|
|
{ ... }@ch:
|
2020-05-31 17:58:29 +00:00
|
|
|
let nixpkgsConfig = {
|
|
|
|
allowUnfree = true;
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"p7zip-16.02"
|
|
|
|
];
|
|
|
|
}; in
|
2020-10-04 00:04:18 +00:00
|
|
|
rec {
|
2020-05-31 17:58:29 +00:00
|
|
|
inherit nixpkgsConfig;
|
|
|
|
nixpkgs = import ./nixpkgs {
|
|
|
|
config = nixpkgsConfig;
|
|
|
|
};
|
2020-04-30 04:49:19 +00:00
|
|
|
nixos = import ./nixpkgs/nixos;
|
2020-05-08 22:26:21 +00:00
|
|
|
nixeval = import ./nixpkgs/nixos/lib/eval-config.nix;
|
2020-10-04 00:04:18 +00:00
|
|
|
buildGo =
|
|
|
|
let orig = import ./tvl/nix/buildGo { pkgs = nixpkgs; };
|
|
|
|
in orig // {
|
|
|
|
program = args:
|
|
|
|
let
|
|
|
|
origOut = orig.program args;
|
|
|
|
in origOut // {
|
|
|
|
dockerImage = nixpkgs.dockerTools.buildImage {
|
|
|
|
name = args.name;
|
|
|
|
config = { Cmd = [ "${origOut}/bin/${args.name}" ]; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
readTree = import ./tvl/nix/readTree {};
|
|
|
|
gopkgs = readTree ch ./gopkgs;
|
2020-04-30 04:49:19 +00:00
|
|
|
}
|