status-react/nix/mobile/default.nix
Jakub Sokołowski 58d20967ae
nix: use jsbundle derivation for iOS as well
For some unknown to me reason we are using a different Yarn call to
Shadow-cljs to generate the JSBundle for iOS builds, while the one
created by the Android derivation shoudl be exactly the same.

I'm changing the target to just be `make jsbundle` while keeping aliases
referencing old naming, and moving things around in `nix` folder to
reflect the fact that the derivation is no longer Android-specific.

Also, crucially, I've changed the `import` in `index.js` to use the
`./result/index.js` path, since that's what Nix creates. I'm not sure if
this clashes with any developer workflow that takes place locally, so
I'd appreciate some testing from developers.

Depends on: https://github.com/status-im/status-jenkins-lib/pull/67

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-05-22 10:31:09 +02:00

34 lines
587 B
Nix

{ lib, callPackage, mkShell, status-go }:
let
fastlane = callPackage ./fastlane { };
jsbundle = callPackage ./jsbundle { };
android = callPackage ./android {
inherit jsbundle;
status-go = status-go.mobile.android;
};
ios = callPackage ./ios {
inherit fastlane;
status-go = status-go.mobile.ios;
};
selectedSources = [
status-go.mobile.android
status-go.mobile.ios
fastlane
android
ios
];
in {
shell = mkShell {
inputsFrom = lib.catAttrs "shell" selectedSources;
};
# TARGETS
inherit android ios fastlane jsbundle;
}