shen-sbcl: 3.0.3 -> 39.1
Migrates to the new "S"-style Shen kernels which brings with them a new build system. Removes the (now deprecated) shen-sources package.
This commit is contained in:
@@ -1,43 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
shen-sources,
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
sbcl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "shen-sbcl";
|
||||
version = "3.0.3";
|
||||
version = "39.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Shen-Language/shen-cl/releases/download/v${version}/shen-cl-v${version}-sources.tar.gz";
|
||||
sha256 = "0mc10jlrxqi337m6ngwbr547zi4qgk69g1flz5dsddjy5x41j0yz";
|
||||
src = fetchzip {
|
||||
url = "https://www.shenlanguage.org/Download/S${finalAttrs.version}.zip";
|
||||
hash = "sha256-reN9avgYGYCMiA5BeHLhRK51liKF2ctqIgxf+4IWjVY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ sbcl ];
|
||||
dontStrip = true; # necessary to prevent runtime errors with sbcl
|
||||
|
||||
preBuild = ''
|
||||
ln -s ${shen-sources} kernel
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
sbcl --noinform --no-sysinit --no-userinit --load install.lsp
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
buildFlags = [ "build-sbcl" ];
|
||||
|
||||
checkTarget = "test-sbcl";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
installPhase = ''
|
||||
install -m755 -D bin/sbcl/shen $out/bin/shen-sbcl
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 sbcl-shen.exe $out/bin/shen-sbcl
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://shenlanguage.org";
|
||||
description = "Port of Shen running on Steel Bank Common Lisp";
|
||||
changelog = "https://github.com/Shen-Language/shen-cl/raw/v${version}/CHANGELOG.md";
|
||||
changelog = "https://shenlanguage.org/download.html#kernel";
|
||||
platforms = sbcl.meta.platforms;
|
||||
maintainers = with maintainers; [ bsima ];
|
||||
broken = true;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ bsima ];
|
||||
license = lib.licenses.bsd3;
|
||||
mainProgram = "shen-sbcl";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "shen-sources";
|
||||
version = "22.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Shen-Language/shen-sources/releases/download/shen-${version}/ShenOSKernel-${version}.tar.gz";
|
||||
sha256 = "1wlyh4rbzr615iykq1s779jvq28812rb4dascx1kzpakhw8z0260";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp . $out -R
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://shenlanguage.org";
|
||||
description = "Source code for the Shen Language";
|
||||
changelog = "https://github.com/Shen-Language/shen-sources/raw/shen-${version}/CHANGELOG.md";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ bsima ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user