@@ -31,6 +31,7 @@ in rec {
31
31
} ) ;
32
32
app = pkgs . haskell . packages . ghcjs86 . callCabal2nix "app" source { } ;
33
33
vsn = app . passthru . version ;
34
+ label = app . passthru . pname ;
34
35
repo = builtins . toString ./. ;
35
36
app-serve-latest = functora-pkgs . writeShellApplication rec {
36
37
name = "app-serve-latest" ;
@@ -119,13 +120,13 @@ in rec {
119
120
${ functora-pkgs . closurecompiler } /bin/closure-compiler \
120
121
--jscomp_off=checkVars \
121
122
--compilation_level ADVANCED_OPTIMIZATIONS \
122
- --externs ${ app } /bin/app .jsexe/all.js.externs \
123
+ --externs ${ app } /bin/${ label } .jsexe/all.js.externs \
123
124
--externs ${ ./static } /app.js \
124
125
--externs ${ ./static } /material-components-web.min.js \
125
126
--externs ${ ./static } /material-components-web-elm.min.js \
126
127
--output_wrapper "%output%//# sourceMappingURL=all.js.map" \
127
128
--create_source_map $out/all.js.map \
128
- --js ${ app } /bin/app .jsexe/all.js \
129
+ --js ${ app } /bin/${ label } .jsexe/all.js \
129
130
--js_output_file $out/all.js
130
131
'' ;
131
132
} ;
@@ -208,18 +209,4 @@ in rec {
208
209
)
209
210
'' ;
210
211
} ;
211
- #
212
- # NOTE : broken atm https://github.com/NixOS/nixpkgs/issues/187853
213
- #
214
- # emulateAndroidDer = android-pkgs.androidenv.emulateApp {
215
- # name = "emulateAndroidDer";
216
- # platformVersion = "33";
217
- # abiVersion = "armeabi-v7a";
218
- # systemImageType = "default";
219
- # app =
220
- # ./android/app/build/outputs/apk/release/app-release-unsigned.apk;
221
- # package = "App";
222
- # activity = "MainActivity";
223
- # sdkExtraArgs = android-sdk-args;
224
- # };
225
212
}
0 commit comments