2018-07-21 03:44:44 +03:00
|
|
|
{ fetchgit, stdenv, xorg, makeWrapper, ncurses, cmake }:
|
2014-07-04 07:19:08 +04:00
|
|
|
|
2019-08-14 00:52:01 +03:00
|
|
|
stdenv.mkDerivation {
|
2014-07-04 07:19:08 +04:00
|
|
|
# The Self wrapper stores source in $XDG_DATA_HOME/self or ~/.local/share/self
|
|
|
|
# so that it can be written to when using the Self transposer. Running 'Self'
|
|
|
|
# after installation runs without an image. You can then build a Self image with:
|
|
|
|
# $ cd ~/.local/share/self/objects
|
|
|
|
# $ Self
|
|
|
|
# > 'worldBuilder.self' _RunScript
|
|
|
|
#
|
|
|
|
# This image can later be started with:
|
|
|
|
# $ Self -s myimage.snap
|
|
|
|
#
|
|
|
|
version = "4.5.0";
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "self";
|
2014-07-04 07:19:08 +04:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/russellallen/self";
|
|
|
|
rev = "d16bcaad3c5092dae81ad0b16d503f2a53b8ef86";
|
2016-06-02 14:26:44 +03:00
|
|
|
sha256 = "1dhs6209407j0ll9w9id31vbawdrm9nz1cjak8g8hixrw1nid4i5";
|
2014-07-04 07:19:08 +04:00
|
|
|
};
|
|
|
|
|
2016-03-02 20:01:17 +03:00
|
|
|
buildInputs = [ ncurses xorg.libX11 xorg.libXext makeWrapper cmake ];
|
2014-07-04 07:19:08 +04:00
|
|
|
|
|
|
|
selfWrapper = ./self;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/bin
|
|
|
|
cp ./vm/Self "$out"/bin/Self.wrapped
|
|
|
|
mkdir -p "$out"/share/self
|
|
|
|
cp -r ../objects "$out"/share/self/
|
|
|
|
makeWrapper $selfWrapper $out/bin/Self \
|
|
|
|
--set SELF_ROOT "$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A prototype-based dynamic object-oriented programming language, environment, and virtual machine";
|
2016-03-02 20:01:17 +03:00
|
|
|
homepage = http://selflanguage.org/;
|
2014-07-04 07:19:08 +04:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-09-27 01:44:29 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.doublec ];
|
2014-07-04 07:19:08 +04:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2016-03-02 20:01:17 +03:00
|
|
|
broken = true; # segfaults on gcc > 4.4
|
2014-07-04 07:19:08 +04:00
|
|
|
};
|
|
|
|
}
|