2020-03-25 22:14:18 +04:00
|
|
|
{ buildNpmPackage, writeShellScriptBin, yarn, linkFarm, nodejs-slim, python2
|
|
|
|
, ligo-doc, ligo-deb, ligo-static }:
|
|
|
|
buildNpmPackage {
|
|
|
|
src = ../gitlab-pages/website;
|
|
|
|
npmBuild = "npm run build";
|
|
|
|
preBuild = ''
|
|
|
|
cp -r ${../gitlab-pages/docs} $NIX_BUILD_TOP/docs
|
|
|
|
chmod 700 -R $NIX_BUILD_TOP/docs
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
cp -Lr build $out
|
2020-05-21 19:56:44 +04:00
|
|
|
cp -r ${ligo-deb}/*.deb $out/deb/ligo.deb
|
2020-03-25 22:14:18 +04:00
|
|
|
mkdir -p $out/bin/linux
|
|
|
|
cp -r ${ligo-static}/bin/ligo $out/bin/linux/ligo
|
|
|
|
cp -r ${ligo-doc}/share/doc $out/odoc
|
|
|
|
'';
|
|
|
|
extraEnvVars.nativeBuildInputs = [ python2 ];
|
|
|
|
}
|