shen-sbcl: 3.0.3 -> 39.1 (#380807)

authored by Donovan Glover and committed by GitHub edb70a97 53bb6269

+30 -54
+6
maintainers/maintainer-list.nix
··· 9176 9176 githubId = 1498782; 9177 9177 name = "Jesse Haber-Kucharsky"; 9178 9178 }; 9179 + hakujin = { 9180 + email = "colin@hakuj.in"; 9181 + github = "hakujin"; 9182 + githubId = 2192042; 9183 + name = "Colin King"; 9184 + }; 9179 9185 hamburger1984 = { 9180 9186 email = "hamburger1984@gmail.com"; 9181 9187 github = "hamburger1984";
+24 -23
pkgs/by-name/sh/shen-sbcl/package.nix
··· 1 1 { 2 2 lib, 3 - stdenv, 4 - fetchurl, 5 - shen-sources, 3 + stdenvNoCC, 4 + fetchzip, 6 5 sbcl, 7 6 }: 8 - 9 - stdenv.mkDerivation rec { 7 + stdenvNoCC.mkDerivation (finalAttrs: { 10 8 pname = "shen-sbcl"; 11 - version = "3.0.3"; 9 + version = "39.1"; 12 10 13 - src = fetchurl { 14 - url = "https://github.com/Shen-Language/shen-cl/releases/download/v${version}/shen-cl-v${version}-sources.tar.gz"; 15 - sha256 = "0mc10jlrxqi337m6ngwbr547zi4qgk69g1flz5dsddjy5x41j0yz"; 11 + src = fetchzip { 12 + url = "https://www.shenlanguage.org/Download/S${finalAttrs.version}.zip"; 13 + hash = "sha256-reN9avgYGYCMiA5BeHLhRK51liKF2ctqIgxf+4IWjVY="; 16 14 }; 17 15 18 16 nativeBuildInputs = [ sbcl ]; 17 + dontStrip = true; # necessary to prevent runtime errors with sbcl 19 18 20 - preBuild = '' 21 - ln -s ${shen-sources} kernel 19 + buildPhase = '' 20 + runHook preBuild 21 + 22 + sbcl --noinform --no-sysinit --no-userinit --load install.lsp 23 + 24 + runHook postBuild 22 25 ''; 23 26 24 - buildFlags = [ "build-sbcl" ]; 25 - 26 - checkTarget = "test-sbcl"; 27 + installPhase = '' 28 + runHook preInstall 27 29 28 - doCheck = true; 30 + install -Dm755 sbcl-shen.exe $out/bin/shen-sbcl 29 31 30 - installPhase = '' 31 - install -m755 -D bin/sbcl/shen $out/bin/shen-sbcl 32 + runHook postInstall 32 33 ''; 33 34 34 - meta = with lib; { 35 + meta = { 35 36 homepage = "https://shenlanguage.org"; 36 37 description = "Port of Shen running on Steel Bank Common Lisp"; 37 - changelog = "https://github.com/Shen-Language/shen-cl/raw/v${version}/CHANGELOG.md"; 38 + changelog = "https://shenlanguage.org/download.html#kernel"; 38 39 platforms = sbcl.meta.platforms; 39 - maintainers = with maintainers; [ bsima ]; 40 - broken = true; 41 - license = licenses.bsd3; 40 + maintainers = with lib.maintainers; [ hakujin ]; 41 + license = lib.licenses.bsd3; 42 + mainProgram = "shen-sbcl"; 42 43 }; 43 - } 44 + })
-31
pkgs/by-name/sh/shen-sources/package.nix
··· 1 - { 2 - lib, 3 - stdenv, 4 - fetchurl, 5 - }: 6 - 7 - stdenv.mkDerivation rec { 8 - pname = "shen-sources"; 9 - version = "22.4"; 10 - 11 - src = fetchurl { 12 - url = "https://github.com/Shen-Language/shen-sources/releases/download/shen-${version}/ShenOSKernel-${version}.tar.gz"; 13 - sha256 = "1wlyh4rbzr615iykq1s779jvq28812rb4dascx1kzpakhw8z0260"; 14 - }; 15 - 16 - dontBuild = true; 17 - 18 - installPhase = '' 19 - mkdir -p $out 20 - cp . $out -R 21 - ''; 22 - 23 - meta = with lib; { 24 - homepage = "https://shenlanguage.org"; 25 - description = "Source code for the Shen Language"; 26 - changelog = "https://github.com/Shen-Language/shen-sources/raw/shen-${version}/CHANGELOG.md"; 27 - platforms = platforms.all; 28 - maintainers = with maintainers; [ bsima ]; 29 - license = licenses.bsd3; 30 - }; 31 - }