mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-13 12:33:27 +02:00
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/b681065d0919f7eb5309a93cea2cfa84dec9aa88?narHash=sha256-eq51hyiaIwtWo19fPEeE0Zr2s83DYMKJoukNLgGGpek%3D' (2024-12-03)
→ 'github:NixOS/nixpkgs/10d7f8d34e5eb9c0f9a0485186c1ca691d2c5922?narHash=sha256-Hb4iMhIbjX45GcrgOp3b8xnyli%2BysRPqAgZ/LZgyT5k%3D' (2025-06-02)
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
# SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
|
|
|
|
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
systems = [
|
|
"aarch64-darwin"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"x86_64-linux"
|
|
];
|
|
|
|
forAllSystems = fn: nixpkgs.lib.genAttrs systems (
|
|
system: fn rec {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
}
|
|
);
|
|
in
|
|
{
|
|
apps = forAllSystems ({ pkgs, ... }: {
|
|
default = {
|
|
type = "app";
|
|
program = "${self.packages.${pkgs.system}.ud3tn}/bin/ud3tn";
|
|
};
|
|
});
|
|
|
|
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.nixpkgs-fmt);
|
|
|
|
overlays.default = final: prev: {
|
|
inherit (self.packages.${final.system}) ud3tn pyd3tn python-ud3tn-utils;
|
|
};
|
|
|
|
nixosModules.default = import ./nix/module.nix;
|
|
};
|
|
}
|