Commit 23e84231 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by Anderson Torres
Browse files

self: drop package

This is an unsupported programming language from 2017 that crashes on startup and doesn't build on x86_64.
Dropping this without an alias since the alias can potentially shadow self as used in overlays and flakes quite often.
parent 8ac0795c
Loading
Loading
Loading
Loading
+0 −45
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, libX11, libXext, makeWrapper, ncurses, cmake }:

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
  #
  pname = "self";
  version = "2017.1";

  src = fetchFromGitHub {
    owner = "russellallen";
    repo = pname;
    rev = version;
    sha256 = "C/1Q6yFmoXx2F97xuvkm8DxFmmvuBS7uYZOxq/CRNog=";
  };

  nativeBuildInputs = [ cmake makeWrapper ];
  buildInputs = [ ncurses libX11 libXext ];

  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 = with lib; {
    description = "A prototype-based dynamic object-oriented programming language, environment, and virtual machine";
    homepage = "https://selflanguage.org/";
    license = licenses.bsd3;
    maintainers = [ ];
    platforms = platforms.linux;
  };
}
+0 −18
Original line number Diff line number Diff line
#! /usr/bin/env bash

export SELF_HOME="$HOME/.local/share/self"
if [ -n "$XDG_DATA_HOME" ]
  then export SELF_HOME="$XDG_DATA_HOME/self"
fi

if [ ! -d $SELF_HOME ]; then
  mkdir -p $SELF_HOME
fi

if [ ! -d $SELF_HOME/objects ]; then
  mkdir -p $SELF_HOME/objects
  cp -r $SELF_ROOT/share/self/objects/* $SELF_HOME/objects
  chmod -R +w $SELF_HOME/objects
fi

exec $SELF_ROOT/bin/Self.wrapped "$@"
+0 −2
Original line number Diff line number Diff line
@@ -18262,8 +18262,6 @@ with pkgs;
  scheme-bytestructures = callPackage ../development/scheme-modules/scheme-bytestructures { };
  self = pkgsi686Linux.callPackage ../development/interpreters/self { };
  smiley-sans = callPackage ../data/fonts/smiley-sans { };
  inherit (callPackages ../applications/networking/cluster/spark { })