Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split into desktop and mobile versions
- Loading branch information
Pedro Pombeiro
committed
May 22, 2019
1 parent
dd4093b
commit e89c611
Showing
17 changed files
with
2,642 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ pkgs, nodejs }: | ||
|
||
let nodePackages = import ./output { inherit pkgs nodejs; }; | ||
realm-version = "5.12.1"; | ||
realm-patched-name = "realm-https://github.com/status-im/realm-js/archive/v2.20.1.tar.gz"; | ||
realm-core-src = pkgs.fetchurl ( | ||
if builtins.currentSystem == "x86_64-darwin" then { | ||
url = "https://static.realm.io/downloads/core/realm-core-Release-v${realm-version}-Darwin-devel.tar.gz"; | ||
sha256 = "05ji1zyskwjj8p5i01kcg7h1cxdjj62fcsp6haf2f65qshp6r44d"; | ||
} else { | ||
url = "https://static.realm.io/downloads/core/realm-core-Release-v${realm-version}-Linux-devel.tar.gz"; | ||
sha256 = "02pvi28qnvzdv7ghqzf79bxn8id9s7mpp3g2ambxg8jrcrkqfvr1"; | ||
} | ||
); | ||
realm-dest-dir = if builtins.currentSystem == "x86_64-darwin" then | ||
"$out/lib/node_modules/realm/compiled/node-v64_darwin_x64/realm.node" else | ||
"$out/lib/node_modules/realm/compiled/node-v64_linux_x64/realm.node"; | ||
in nodePackages // { | ||
${realm-patched-name} = nodePackages.${realm-patched-name}.override(oldAttrs: { | ||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.nodePackages.node-pre-gyp ]; | ||
reconstructLock = true; | ||
preRebuild = '' | ||
# Do not attempt to do any http calls! | ||
substituteInPlace $out/lib/node_modules/realm/scripts/download-realm.js \ | ||
--replace "!shouldSkipAcquire(realmDir, requirements, options.force)" "false" | ||
mkdir -p ${realm-dest-dir} | ||
tar -xzf ${realm-core-src} -C ${realm-dest-dir} | ||
''; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.