ud3tn/flake.nix
Maximilian Nitsch d0dba2c822 flake.nix: bump nixos-26.05
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2026-06-18 14:20:34 +02:00

53 lines
1.2 KiB
Nix

# SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
};
outputs =
{ self, nixpkgs }:
let
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems =
fn:
nixpkgs.lib.genAttrs systems (
system:
fn {
pkgs = import nixpkgs { inherit system; };
}
);
in
{
packages = forAllSystems ({ pkgs, ... }: import ./nix/packages.nix { inherit pkgs; });
checks = forAllSystems (
{ pkgs, ... }:
import ./nix/tests {
pkgs = pkgs.extend self.overlays.default;
nixosModules = self.nixosModules;
}
);
devShells = forAllSystems (
{ pkgs, ... }:
{
default = import ./nix/shell.nix { inherit pkgs self; };
}
);
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-tree);
overlays.default = final: prev: {
inherit (self.packages.${final.stdenv.hostPlatform.system}) ud3tn pyd3tn python-ud3tn-utils;
};
nixosModules.default = import ./nix/module.nix;
};
}