Skip to content

Commit

Permalink
pharo: update URL to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonTorres committed Oct 26, 2020
1 parent 507a352 commit d070216
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 43 deletions.
7 changes: 3 additions & 4 deletions pkgs/development/pharo/launcher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ stdenv.mkDerivation rec {
test "$?" == 124 && echo "ok")
'';

meta = {
meta = with stdenv.lib; {
description = "Launcher for Pharo distributions";
homepage = "https://pharo.org";
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
Expand All @@ -75,8 +75,7 @@ stdenv.mkDerivation rec {
access it very rapidly from your OS application launcher. As a
result, launching any image is never more than 3 clicks away.
'';
homepage = "http://pharo.org";
license = stdenv.lib.licenses.mit;
license = licenses.mit;
maintainers = [ ];
platforms = pharo.meta.platforms;
};
Expand Down
40 changes: 30 additions & 10 deletions pkgs/development/pharo/vm/build-vm-legacy.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, libGLU, libGL, freetype, xorg, alsaLib, cairo, libuuid, makeWrapper, ... }:
{ stdenv
, fetchurl
, cmake
, bash
, unzip
, glibc
, openssl
, gcc
, libGLU
, libGL
, freetype
, xorg
, alsaLib
, cairo
, libuuid
, makeWrapper
, ... }:

{ name, src, ... }:

Expand All @@ -10,7 +26,15 @@ stdenv.mkDerivation rec {

hardeningDisable = [ "format" "pic" ];

# Building
nativeBuildInputs = [ unzip cmake gcc makeWrapper ];

buildInputs = [ bash glibc openssl libGLU libGL freetype
xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];

LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath
[ cairo libGLU libGL freetype openssl libuuid alsaLib
xorg.libICE xorg.libSM ];

preConfigure = ''
cd build/
'';
Expand Down Expand Up @@ -46,12 +70,9 @@ stdenv.mkDerivation rec {
ln -s "${pharo-share}/lib/"*.sources $prefix/lib/$name
'';

LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ cairo libGLU libGL freetype openssl libuuid alsaLib xorg.libICE xorg.libSM ];
nativeBuildInputs = [ unzip cmake gcc makeWrapper ];
buildInputs = [ bash glibc openssl libGLU libGL freetype xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];

meta = {
meta = with stdenv.lib; {
description = "Clean and innovative Smalltalk-inspired environment";
homepage = "https://pharo.org";
longDescription = ''
Pharo's goal is to deliver a clean, innovative, free open-source
Smalltalk-inspired environment. By providing a stable and small core
Expand All @@ -65,9 +86,8 @@ stdenv.mkDerivation rec {
Please fill bug reports on http://bugs.pharo.org under the 'Ubuntu
packaging (ppa:pharo/stable)' project.
'';
homepage = "http://pharo.org";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.lukego ];
license = licenses.mit;
maintainers = [ maintainers.lukego ];
# Pharo VM sources are packaged separately for darwin (OS X)
platforms = stdenv.lib.filter
(system: with stdenv.lib.systems.elaborate { inherit system; };
Expand Down
56 changes: 28 additions & 28 deletions pkgs/development/pharo/vm/build-vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,33 @@ stdenv.mkDerivation rec {
# while the VM depends on <= gcc48:
"stackprotector" ];

# gcc 4.8 used for the build:
#
# gcc5 crashes during compilation; gcc >= 4.9 produces a
# binary that crashes when forking a child process. See:
# http://forum.world.st/OSProcess-fork-issue-with-Debian-built-VM-td4947326.html
#
# (stack protection is disabled above for gcc 4.8 compatibility.)
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [
bash
unzip
glibc
openssl
gcc48
libGLU libGL
freetype
xorg.libX11
xorg.libICE
xorg.libSM
alsaLib
cairo
pharo-share
libuuid
];

enableParallelBuilding = true;

# Regenerate the configure script.
# Unnecessary? But the build breaks without this.
autoreconfPhase = ''
Expand Down Expand Up @@ -123,35 +150,9 @@ stdenv.mkDerivation rec {
ln -s ${libgit2}/lib/libgit2.so* "$out/"
'';

enableParallelBuilding = true;

# gcc 4.8 used for the build:
#
# gcc5 crashes during compilation; gcc >= 4.9 produces a
# binary that crashes when forking a child process. See:
# http://forum.world.st/OSProcess-fork-issue-with-Debian-built-VM-td4947326.html
#
# (stack protection is disabled above for gcc 4.8 compatibility.)
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [
bash
unzip
glibc
openssl
gcc48
libGLU libGL
freetype
xorg.libX11
xorg.libICE
xorg.libSM
alsaLib
cairo
pharo-share
libuuid
];

meta = with stdenv.lib; {
description = "Clean and innovative Smalltalk-inspired environment";
homepage = "https://pharo.org";
longDescription = ''
Pharo's goal is to deliver a clean, innovative, free open-source
Smalltalk-inspired environment. By providing a stable and small core
Expand All @@ -165,7 +166,6 @@ stdenv.mkDerivation rec {
Please fill bug reports on http://bugs.pharo.org under the 'Ubuntu
packaging (ppa:pharo/stable)' project.
'';
homepage = "http://pharo.org";
license = licenses.mit;
maintainers = [ maintainers.lukego ];
platforms = [ "i686-linux" "x86_64-linux" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/pharo/vm/share.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ stdenv.mkDerivation rec {

meta = {
description = "Shared files for Pharo";
homepage = "http://pharo.org";
homepage = "https://pharo.org";
license = stdenv.lib.licenses.mit;
maintainers = [ ];
};
Expand Down

0 comments on commit d070216

Please sign in to comment.