on master help sign in
executable-config-lookup: Provide android-activity dependency when necessary
commitdaee8ca777b588fc6bcb83f78676ad7df84376b2 author3noch <eacameron@gmail.com> dateTue 7 Jul 2020, 21:04 (6 years ago) parentf17057d
1 file changed+13−2
lib/executable-config/default.nix+13−2
lib/executable-config/default.nix+13−2
@@ -25,8 +25,19 @@ let
2525in
2626
2727{
28− haskellOverlay = self: super: {
29− obelisk-executable-config-lookup = self.callCabal2nix "obelisk-executable-config-lookup" (obeliskCleanSource ./lookup) {};
28+ haskellOverlay = self: super:
29+ let
30+ pkgs = self.callPackage ({pkgs}: pkgs) {};
31+ in {
32+ obelisk-executable-config-lookup = pkgs.haskell.lib.overrideCabal
33+ (self.callCabal2nix "obelisk-executable-config-lookup" (obeliskCleanSource ./lookup) {})
34+ (drv: {
35+ # Hack until https://github.com/NixOS/cabal2nix/pull/432 lands
36+ libraryHaskellDepends = (drv.libraryHaskellDepends or [])
37+ ++ pkgs.stdenv.lib.optionals (with pkgs.stdenv.hostPlatform; isAndroid && is32bit) [
38+ self.android-activity
39+ ];
40+ });
3041 };
3142
3243 platforms = {