@@ -17,39 +17,31 @@ let
1717 ] ++ lib.optionals (reflex-platform.iosSupport) [
1818 "ghcIosAarch64"
1919 ];
20− variations = map (v: "reflex-dom" + v) [
21− ""
22− ];
2320 compilerPkgs = lib.genAttrs compilers (ghc: let
24− variationPkgs = lib.genAttrs variations (variation: let
25− reflex-platform = reflex-platform-fun {
26− inherit system;
27− haskellOverlays = [
28− # Use this package's source for reflex
29− (self: super: {
30− _dep = super._dep // {
31− reflex-dom = builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [
32− "release.nix"
33− ".git"
34− "dist"
35− ])) ./.;
36− };
37− })
38− ];
39− };
40− all = {
41− inherit (reflex-platform.${ghc})
42− reflex-dom-core
43− reflex-dom
44− ;
45− };
46− in all // {
47− cache = reflex-platform.pinBuildInputs "reflex-${system}-${ghc}-${variation}"
48− (builtins.attrValues all);
49− });
50− in variationPkgs // {
21+ reflex-platform = reflex-platform-fun {
22+ inherit system;
23+ haskellOverlays = [
24+ # Use this package's source for reflex
25+ (self: super: {
26+ _dep = super._dep // {
27+ reflex-dom = builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [
28+ "release.nix"
29+ ".git"
30+ "dist"
31+ ])) ./.;
32+ };
33+ })
34+ ];
35+ };
36+ all = {
37+ inherit (reflex-platform.${ghc})
38+ reflex-dom-core
39+ reflex-dom
40+ ;
41+ };
42+ in all // {
5143 cache = reflex-platform.pinBuildInputs "reflex-${system}-${ghc}"
52− (map (a: a.cache) (builtins.attrValues variationPkgs));
44+ (builtins.attrValues all);
5345 });
5446 in compilerPkgs // {
5547 cache = reflex-platform.pinBuildInputs "reflex-${system}"