Files
my-pkgs/flake.nix
T

51 lines
1.2 KiB
Nix

{
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
description = "A flake for exposing custom Nix packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
# openssl_1_1 is EOL and marked insecure in nixpkgs, but it's only a
# build-time link dependency (vibe-d 0.9.8 TLS needs symbols removed in
# OpenSSL 3). The resulting binary statically links it.
pkgs = import nixpkgs {
inherit system;
config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
};
in
{
packages = import ./pkgs {
inherit pkgs;
};
devShells.default = import ./devshells {
inherit pkgs;
};
checks = import ./checks { inherit pkgs; };
}
)
// {
overlays.default = import ./overlays;
};
}