mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
shen-sbcl: 3.0.3 -> 39.1 (#380807)
This commit is contained in:
commit
edb70a9757
3 changed files with 31 additions and 55 deletions
|
@ -9176,6 +9176,12 @@
|
|||
githubId = 1498782;
|
||||
name = "Jesse Haber-Kucharsky";
|
||||
};
|
||||
hakujin = {
|
||||
email = "colin@hakuj.in";
|
||||
github = "hakujin";
|
||||
githubId = 2192042;
|
||||
name = "Colin King";
|
||||
};
|
||||
hamburger1984 = {
|
||||
email = "hamburger1984@gmail.com";
|
||||
github = "hamburger1984";
|
||||
|
|
|
@ -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; [ hakujin ];
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue