1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/interpreters/self/default.nix

45 lines
1.5 KiB
Nix
Raw Normal View History

{ fetchurl, fetchgit, stdenv, xorg, gcc44, makeWrapper, ncurses, cmake }:
2014-07-04 04:19:08 +01:00
stdenv.mkDerivation rec {
# 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";
name = "self-${version}";
src = fetchgit {
url = "https://github.com/russellallen/self";
rev = "d16bcaad3c5092dae81ad0b16d503f2a53b8ef86";
sha256 = "966025b71542e44fc830b951f404f5721ad410ed24f7236fd0cd820ea0fc5731";
};
# gcc 4.6 and above causes crashes on Self startup but gcc 4.4 works.
buildInputs = [ gcc44 ncurses xorg.libX11 xorg.libXext makeWrapper cmake ];
2014-07-04 04:19:08 +01: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";
homepage = "http://selflanguage.org/";
license = stdenv.lib.licenses.bsd3;
2014-09-26 22:44:29 +01:00
maintainers = [ stdenv.lib.maintainers.doublec ];
2014-07-04 04:19:08 +01:00
platforms = with stdenv.lib.platforms; linux;
};
}