on iko/ghcjs-patch-master help sign in
Fix types of some meta attributes (#806)

These can't be null. They could perhaps be absent, but I can't figure out how to set an attribute only if something else isn't null in a nice way, and having it be the empty string seems fine. Fixes #804.

commit1687b5d2a17d69a8dd756f73acc2570f2e117dd9 authorMichael Peyton Jones <michael.peyton-jones@iohk.io> dateSat 8 Aug 2020, 02:20 (6 years ago) parent1cfbe69
2 files changed+5−5
builder/comp-builder.nix+2−2 builder/setup-builder.nix+3−3
builder/comp-builder.nix+2−2
@@ -228,8 +228,8 @@ let
228228 );
229229
230230 meta = {
231− homepage = package.homepage;
232− description = package.synopsis;
231+ homepage = package.homepage or "";
232+ description = package.synopsis or "";
233233 license =
234234 let
235235 license-map = import ../lib/cabal-licenses.nix lib;
builder/setup-builder.nix+3−3
@@ -48,8 +48,8 @@ let
4848 };
4949
5050 meta = {
51− homepage = package.homepage;
52− description = package.synopsis;
51+ homepage = package.homepage or "";
52+ description = package.synopsis or "";
5353 license =
5454 let
5555 license-map = import ../lib/cabal-licenses.nix lib;
@@ -86,4 +86,4 @@ let
8686 // (lib.optionalAttrs (patches != []) { patches = map (p: if builtins.isFunction p then p { inherit (package.identifier) version; inherit revision; } else p) patches; })
8787 // hooks
8888 );
89−in drv
89+in drv