2024-07-02 11:39:25 +00:00
|
|
|
{
|
|
|
|
description = "wrapper-manager-fds flake";
|
2024-07-14 03:13:08 +00:00
|
|
|
outputs = { ... }: let
|
|
|
|
sources = import ./npins;
|
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
eachSystem = systems: f:
|
|
|
|
let
|
|
|
|
# Merge together the outputs for all systems.
|
|
|
|
op = attrs: system:
|
|
|
|
let
|
|
|
|
ret = f system;
|
|
|
|
op = attrs: key: attrs //
|
|
|
|
{
|
|
|
|
${key} = (attrs.${key} or { })
|
|
|
|
// { ${system} = ret.${key}; };
|
|
|
|
}
|
|
|
|
;
|
|
|
|
in
|
|
|
|
builtins.foldl' op attrs (builtins.attrNames ret);
|
|
|
|
in
|
|
|
|
builtins.foldl' op { }
|
|
|
|
(systems
|
|
|
|
++ # add the current system if --impure is used
|
|
|
|
(if builtins?currentSystem then
|
|
|
|
if builtins.elem builtins.currentSystem systems
|
|
|
|
then []
|
|
|
|
else [ builtins.currentSystem ]
|
|
|
|
else
|
|
|
|
[]));
|
|
|
|
in import ./. { } // (eachSystem systems (system: let
|
|
|
|
pkgs = import sources.nixos-unstable { inherit system; };
|
|
|
|
tests = import ./tests { inherit pkgs; };
|
|
|
|
in {
|
2024-07-14 03:14:22 +00:00
|
|
|
devShells = {
|
|
|
|
default = import ./shell.nix { inherit pkgs; };
|
|
|
|
website = import ./docs/shell.nix { inherit pkgs; };
|
|
|
|
};
|
|
|
|
|
|
|
|
packages.website = import ./docs { inherit pkgs; };
|
2024-07-14 03:13:08 +00:00
|
|
|
|
|
|
|
checks.wrapperManagerLibrarySetPkg = tests.libTestPkg;
|
|
|
|
}));
|
2024-07-02 11:39:25 +00:00
|
|
|
}
|