Merge pull request #88 from nrdxp/remove-apps
flake: remove apps to reduce complexity
This commit is contained in:
commit
d35195187f
32
flake.nix
32
flake.nix
@ -61,6 +61,7 @@
|
|||||||
defaultTemplate = self.templates.flk;
|
defaultTemplate = self.templates.flk;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
recursiveUpdate
|
||||||
(eachDefaultSystem
|
(eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let
|
let
|
||||||
@ -70,15 +71,10 @@
|
|||||||
overlays = [ devshell.overlay ];
|
overlays = [ devshell.overlay ];
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = filterAttrs
|
packages = flattenTreeSystem system
|
||||||
(_: drv: drv.meta.broken != true)
|
|
||||||
(flattenTreeSystem system
|
|
||||||
(genPackages {
|
(genPackages {
|
||||||
inherit self pkgs;
|
inherit self pkgs;
|
||||||
})
|
});
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit packages;
|
inherit packages;
|
||||||
@ -86,24 +82,8 @@
|
|||||||
devShell = import ./shell.nix {
|
devShell = import ./shell.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
apps =
|
|
||||||
let
|
|
||||||
validApps = attrNames (filterAttrs
|
|
||||||
(_: drv:
|
|
||||||
drv.meta.broken != true
|
|
||||||
&& pathExists "${drv}/bin"
|
|
||||||
)
|
)
|
||||||
self.packages."${osSystem}"
|
)
|
||||||
);
|
outputs;
|
||||||
|
|
||||||
validSystems = attrNames packages;
|
|
||||||
|
|
||||||
filterBins = filterAttrs
|
|
||||||
(n: _: elem n validSystems && elem n validApps)
|
|
||||||
packages;
|
|
||||||
in
|
|
||||||
mapAttrs (_: drv: mkApp { inherit drv; }) filterBins;
|
|
||||||
|
|
||||||
})) // outputs;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user