Import nixpkgs with permittedInsecurePackages config

This commit is contained in:
Hermes committed 2026-08-08 09:46:45 +00:00
1 parent afc9ae8cc5
commit 6f0b029440
1 file changed
+7 -10
+7 -10
View File
@@ -24,16 +24,13 @@
flake-utils.lib.eachDefaultSystem ( flake-utils.lib.eachDefaultSystem (
system: system:
let let
pkgs = nixpkgs.legacyPackages.${system}.extend ( # openssl_1_1 is EOL and marked insecure in nixpkgs, but it's only a
final: prev: { # build-time link dependency (vibe-d 0.9.8 TLS needs symbols removed in
config = prev.config // { # OpenSSL 3). The resulting binary statically links it.
permittedInsecurePackages = (prev.config.permittedInsecurePackages or [ ]) ++ [ pkgs = import nixpkgs {
# openssl_1_1 is EOL but needed to link vibe-d 0.9.8 TLS inherit system;
"openssl-1.1.1w" config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
]; };
};
}
);
in in
{ {
packages = import ./pkgs { packages = import ./pkgs {