mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
f7e390e6d4
Related: -9fc5e7e473
-593e11fd94
-508ae42a0f
Since the last time I ran this script, the Repology API changed, so I had to adapt the script used in the previous PR. The new API should be more robust, so overall this is a positive (no more grepping the error messages for our relevant data but just a nice json structure). Here's the new script I used: ```sh curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq -r '.[] | select(.type == "homepage_permanent_https_redirect") | .data | "s@\(.url)@\(.target)@"' \ | sort | uniq | tee script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ``` I will also add this script to `maintainers/scripts`.
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ fetchgit, stdenv, xorg, makeWrapper, ncurses, cmake }:
|
|
|
|
stdenv.mkDerivation {
|
|
# 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";
|
|
pname = "self";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/russellallen/self";
|
|
rev = "d16bcaad3c5092dae81ad0b16d503f2a53b8ef86";
|
|
sha256 = "1dhs6209407j0ll9w9id31vbawdrm9nz1cjak8g8hixrw1nid4i5";
|
|
};
|
|
|
|
buildInputs = [ ncurses xorg.libX11 xorg.libXext makeWrapper cmake ];
|
|
|
|
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 = "https://selflanguage.org/";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
maintainers = [ stdenv.lib.maintainers.doublec ];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
broken = true; # segfaults on gcc > 4.4
|
|
};
|
|
}
|