1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-27 09:29:27 +03:00

flake: remove apps to reduce complexity

As pointed out here numtide/flake-utils#17, apps are somewhat redundant
and, for the sake of simplicity, should be removed for now.
This commit is contained in:
Timothy DeHerrera 2021-01-11 18:10:48 -07:00
parent 5558959869
commit 25293a7ea8
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122

View File

@ -61,49 +61,29 @@
defaultTemplate = self.templates.flk;
};
in
(eachDefaultSystem
(system:
let
pkgs = pkgImport {
inherit system;
pkgs = nixos;
overlays = [ devshell.overlay ];
};
recursiveUpdate
(eachDefaultSystem
(system:
let
pkgs = pkgImport {
inherit system;
pkgs = nixos;
overlays = [ devshell.overlay ];
};
packages = filterAttrs
(_: drv: drv.meta.broken != true)
(flattenTreeSystem system
packages = flattenTreeSystem system
(genPackages {
inherit self pkgs;
})
);
});
in
{
inherit packages;
in
{
inherit packages;
devShell = import ./shell.nix {
inherit pkgs;
};
apps =
let
validApps = attrNames (filterAttrs
(_: drv:
drv.meta.broken != true
&& pathExists "${drv}/bin"
)
self.packages."${osSystem}"
);
validSystems = attrNames packages;
filterBins = filterAttrs
(n: _: elem n validSystems && elem n validApps)
packages;
in
mapAttrs (_: drv: mkApp { inherit drv; }) filterBins;
})) // outputs;
devShell = import ./shell.nix {
inherit pkgs;
};
}
)
)
outputs;
}