Skip to content

Commit

Permalink
release.nix: Ensure filenames in testing bundle have correct names
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Jan 9, 2020
1 parent aa9597d commit a46c0f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ with pkgs.lib;

let
testsSupportedSystems = [ "x86_64-linux" "x86_64-darwin" ];
collectTests = ds: filter (d: elem d.system testsSupportedSystems) (collect isDerivation ds);
# Recurse through an attrset, returning all test derivations in a list.
collectTests' = ds: filter (d: elem d.system testsSupportedSystems) (collect isDerivation ds);
# Adds the package name to the test derivations for windows-testing-bundle.nix
# (passthru.identifier.name does not survive mapTestOn)
collectTests = ds: concatLists (
mapAttrsToList (packageName: package:
map (drv: drv // { inherit packageName; }) (collectTests' package)
) ds);

inherit (systems.examples) mingwW64 musl64;

Expand Down

0 comments on commit a46c0f9

Please sign in to comment.