@@ -1,4 +1,20 @@
1−{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, libGLU, libGL, freetype, xorg, alsaLib, cairo, libuuid, makeWrapper, ... }:
1+{ stdenv
2+, fetchurl
3+, cmake
4+, bash
5+, unzip
6+, glibc
7+, openssl
8+, gcc
9+, libGLU
10+, libGL
11+, freetype
12+, xorg
13+, alsaLib
14+, cairo
15+, libuuid
16+, makeWrapper
17+, ... }:
218
319{ name, src, ... }:
420
@@ -10,7 +26,15 @@ stdenv.mkDerivation rec {
1026
1127 hardeningDisable = [ "format" "pic" ];
1228
13− # Building
29+ nativeBuildInputs = [ unzip cmake gcc makeWrapper ];
30+
31+ buildInputs = [ bash glibc openssl libGLU libGL freetype
32+ xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];
33+
34+ LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath
35+ [ cairo libGLU libGL freetype openssl libuuid alsaLib
36+ xorg.libICE xorg.libSM ];
37+
1438 preConfigure = ''
1539 cd build/
1640 '';
@@ -46,12 +70,9 @@ stdenv.mkDerivation rec {
4670 ln -s "${pharo-share}/lib/"*.sources $prefix/lib/$name
4771 '';
4872
49− LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ cairo libGLU libGL freetype openssl libuuid alsaLib xorg.libICE xorg.libSM ];
50− nativeBuildInputs = [ unzip cmake gcc makeWrapper ];
51− buildInputs = [ bash glibc openssl libGLU libGL freetype xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];
52−
53− meta = {
73+ meta = with stdenv.lib; {
5474 description = "Clean and innovative Smalltalk-inspired environment";
75+ homepage = "https://pharo.org";
5576 longDescription = ''
5677 Pharo's goal is to deliver a clean, innovative, free open-source
5778 Smalltalk-inspired environment. By providing a stable and small core
@@ -65,9 +86,8 @@ stdenv.mkDerivation rec {
6586 Please fill bug reports on http://bugs.pharo.org under the 'Ubuntu
6687 packaging (ppa:pharo/stable)' project.
6788 '';
68− homepage = "http://pharo.org";
69− license = stdenv.lib.licenses.mit;
70− maintainers = [ stdenv.lib.maintainers.lukego ];
89+ license = licenses.mit;
90+ maintainers = [ maintainers.lukego ];
7191 # Pharo VM sources are packaged separately for darwin (OS X)
7292 platforms = stdenv.lib.filter
7393 (system: with stdenv.lib.systems.elaborate { inherit system; };