Find file
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (57 sloc) 2.4 KB
{ stdenv, fetchurl, bash, pharo-vm, unzip, makeDesktopItem }:
stdenv.mkDerivation rec {
version = "0.2.9-2016.01.14";
name = "pharo-launcher-${version}";
src = fetchurl {
url = "${version}.zip";
sha256 = "0lzdnaw7l1rrzbrq53xsy38aiz6id5x7s78ds1dhb31vqc241yy8";
executable-name = "pharo-launcher";
desktopItem = makeDesktopItem {
name = "Pharo";
exec = "${executable-name}";
icon = "pharo";
comment = "Launcher for Pharo distributions";
desktopName = "Pharo";
genericName = "Pharo";
categories = "Development;";
# because upstream tarball has no top-level directory.
sourceRoot = ".";
buildInputs = [ bash pharo-vm unzip ];
installPhase = ''
mkdir -p $prefix/share/pharo-launcher
mkdir -p $prefix/bin
mv PharoLauncher.image $prefix/share/pharo-launcher/pharo-launcher.image
mv PharoLauncher.changes $prefix/share/pharo-launcher/pharo-launcher.changes
mkdir -p $prefix/share/applications
cp "${desktopItem}/share/applications/"* $out/share/applications
cat > $prefix/bin/${executable-name} <<EOF
exec ${pharo-vm}/bin/pharo-vm-x $prefix/share/pharo-launcher/pharo-launcher.image
chmod +x $prefix/bin/${executable-name}
meta = {
description = "Launcher for Pharo distributions";
longDescription = ''
Pharo's goal is to deliver a clean, innovative, free open-source
Smalltalk-inspired environment. By providing a stable and small
core system, excellent dev tools, and maintained releases, Pharo
is an attractive platform to build and deploy mission critical
The Pharo Launcher is a cross-platform application that
- lets you manage your Pharo images (launch, rename, copy and delete);
- lets you download image templates (i.e., zip archives) from many
different sources (e.g., Jenkins,;
- lets you create new images from any template.
The idea behind the Pharo Launcher is that you should be able to
access it very rapidly from your OS application launcher. As a
result, launching any image is never more than 3 clicks away.
homepage =;
license =;
maintainers = [ stdenv.lib.maintainers.DamienCassou ];
platforms = pharo-vm.meta.platforms;