pharo: 5.0 -> 6.0
Create a new set of VM packages to keep up with changes in the upstream Pharo project.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, bash, pharo-vm, unzip, makeDesktopItem }:
|
||||
{ stdenv, fetchurl, bash, pharo, unzip, makeDesktopItem }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.2.9-2016.01.14";
|
||||
version = "2017.02.28";
|
||||
name = "pharo-launcher-${version}";
|
||||
src = fetchurl {
|
||||
url = "http://files.pharo.org/platform/launcher/blessed/PharoLauncher-user-${version}.zip";
|
||||
sha256 = "0lzdnaw7l1rrzbrq53xsy38aiz6id5x7s78ds1dhb31vqc241yy8";
|
||||
url = "http://files.pharo.org/platform/launcher/PharoLauncher-user-stable-${version}.zip";
|
||||
sha256 = "1hfwjyx0c47s6ivc1zr2sf5mk1xw2zspsv0ns8mj3kcaglzqwiq0";
|
||||
};
|
||||
|
||||
executable-name = "pharo-launcher";
|
||||
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
# because upstream tarball has no top-level directory.
|
||||
sourceRoot = ".";
|
||||
|
||||
buildInputs = [ bash pharo-vm unzip ];
|
||||
buildInputs = [ bash pharo unzip ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $prefix/share/pharo-launcher
|
||||
@@ -37,8 +37,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cat > $prefix/bin/${executable-name} <<EOF
|
||||
#!${bash}/bin/bash
|
||||
|
||||
exec ${pharo-vm}/bin/pharo-vm-x $prefix/share/pharo-launcher/pharo-launcher.image
|
||||
exec ${pharo}/bin/pharo $prefix/share/pharo-launcher/pharo-launcher.image
|
||||
EOF
|
||||
chmod +x $prefix/bin/${executable-name}
|
||||
'';
|
||||
@@ -52,7 +51,7 @@ stdenv.mkDerivation rec {
|
||||
secs=5
|
||||
echo -n "Running headless Pharo for $secs seconds to check for a crash... "
|
||||
timeout $secs \
|
||||
${pharo-vm}/bin/pharo-vm-nox PharoLauncher.image --no-quit eval 'true'
|
||||
${pharo}/bin/pharo -nodisplay PharoLauncher.image --no-quit eval 'true'
|
||||
test "$?" == 124 && echo "ok")
|
||||
'';
|
||||
|
||||
@@ -78,7 +77,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
homepage = http://pharo.org;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.lukego ];
|
||||
platforms = pharo-vm.meta.platforms;
|
||||
maintainers = [ ];
|
||||
platforms = pharo.meta.platforms;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user