bs-platform: don't build a development binary (#77726)

bs-platform: don't build a development binary
This commit is contained in:
Vladyslav M 2020-01-17 22:14:34 +02:00 committed by GitHub
commit 4670bf59b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,11 +35,12 @@ stdenv.mkDerivation {
'';
buildPhase = ''
node scripts/ninja.js build
# This is an unfortunate name, but it's actually how to build a release
# binary for BuckleScript
node scripts/install.js
'';
installPhase = ''
node scripts/install.js
mkdir -p $out/bin
cp -rf jscomp lib vendor odoc_gen native $out
cp bsconfig.json package.json $out