Skip to content

Commit

Permalink
Fix collectExes to ignore cross-compiled packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed Sep 16, 2021
1 parent 8e65ca0 commit db2c75a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ lib: with lib; rec {
prefixNamesWith = p: mapAttrs' (n: v: nameValuePair "${p}${n}" v);

collectExes = p: listToAttrs (concatMap (n:
let m = builtins.match ".+:exe:(.+)" n;
in if m == null then [] else [ (nameValuePair (head m) p.${n}) ]
let s = lib.splitString ":" n;
in if (lib.length s == 3)
then [ (nameValuePair (lib.elemAt s 2) p.${n}) ]
# exclude cross-compiled exes:
else []
) (attrNames p));

evalService = { pkgs, serviceName, modules, customConfigs }:
Expand Down

0 comments on commit db2c75a

Please sign in to comment.