2021-04-20 21:31:37 +00:00
|
|
|
rec {
|
|
|
|
|
|
|
|
overlays = [
|
|
|
|
|
2022-10-07 13:46:29 +00:00
|
|
|
# Make both buildGoModules use static compilation by default.
|
|
|
|
(final: prev:
|
2021-04-20 21:31:37 +00:00
|
|
|
|
2022-10-07 13:46:29 +00:00
|
|
|
let
|
2021-04-20 21:31:37 +00:00
|
|
|
|
2022-10-07 13:46:29 +00:00
|
|
|
buildArgs = {
|
|
|
|
doCheck = false;
|
|
|
|
CGO_ENABLED=0;
|
|
|
|
tags = [ "netgo" "timetzdata" ];
|
|
|
|
ldflags = [ "-w" "-extldflags=-static" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
buildGoModule = args: prev.buildGoModule (buildArgs // args);
|
|
|
|
buildGo118Module = args: prev.buildGo118Module (buildArgs // args);
|
|
|
|
|
|
|
|
}
|
|
|
|
)
|
2021-04-20 21:31:37 +00:00
|
|
|
|
2022-10-07 13:25:47 +00:00
|
|
|
(final: prev: { rebase = prev.callPackage ./rebase.nix {}; })
|
|
|
|
(final: prev: { yq-go = prev.callPackage ./yq-go.nix {}; })
|
2022-10-07 13:46:29 +00:00
|
|
|
|
|
|
|
(final: prev: { nebula = prev.callPackage ./nebula.nix {
|
|
|
|
buildGoModule = prev.buildGo118Module;
|
|
|
|
}; })
|
|
|
|
|
2021-04-20 21:31:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
stableSrc = fetchTarball {
|
2022-10-07 13:19:10 +00:00
|
|
|
name = "nixpkgs-22-05";
|
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/2aec372cdcd4d73b94863611fea70e0884270fdc.tar.gz";
|
|
|
|
sha256 = "1pbfhlh4v8l70p44gspsci3i6w0wk70vaisiawg3jhka2nxb8367";
|
2021-04-20 21:31:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
stable = import stableSrc { inherit overlays; };
|
|
|
|
}
|