Skip to content

Commit

Permalink
naming fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Apr 28, 2020
1 parent 26e0d05 commit bae083b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nix/mobile/android/jsbundle/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This Nix expression builds the js files for the current repository given a node modules Nix expression
#

{ platform ? "android",
{ target ? "android",
stdenv, mkFilter, clojure, nodejs, bash, git, openjdk,
clojureDeps, localMavenRepoBuilder, projectNodePackage }:

let
clojureDepsLocal = localMavenRepoBuilder "lein-project-deps" clojureDeps;
in stdenv.mkDerivation {
name = "status-react-build-jsbundle-${platform}";
name = "status-react-build-jsbundle-${target}";
src =
let path = ./../../../..;
in builtins.path { # We use builtins.path so that we can name the resulting derivation, otherwise the name would be taken from the checkout directory, which is outside of our control
Expand Down Expand Up @@ -54,7 +54,8 @@ in stdenv.mkDerivation {
# We append 'src' so it can find the local sources.
CLASS_PATH="$(find ${clojureDepsLocal} -iname '*.jar' | tr '\n' ':')src"
java -cp "$CLASS_PATH" clojure.main -m shadow.cljs.devtools.cli release ${platform}
# target must be one of the builds defined in shadow-cljs.edn
java -cp "$CLASS_PATH" clojure.main -m shadow.cljs.devtools.cli release ${target}
'';
installPhase = ''
mkdir -p $out
Expand Down

0 comments on commit bae083b

Please sign in to comment.