Skip to content
forked from divnix/digga

Commit

Permalink
Merge pull request divnix#88 from nrdxp/remove-apps
Browse files Browse the repository at this point in the history
flake: remove apps to reduce complexity
  • Loading branch information
nrdxp authored Jan 12, 2021
2 parents 080947b + 6d93c34 commit ced8c95
Showing 1 changed file with 21 additions and 41 deletions.
62 changes: 21 additions & 41 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

devShell = import ./shell.nix {
inherit pkgs;
};
});
in
{
inherit packages;

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;
}

0 comments on commit ced8c95

Please sign in to comment.