2021-09-01 06:20:00 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-05-26 06:26:39 +02:00
|
|
|
, fetchurl
|
|
|
|
, shen-sources
|
|
|
|
, sbcl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-01 06:20:00 +02:00
|
|
|
pname = "shen-sbcl";
|
2020-05-26 06:26:39 +02:00
|
|
|
version = "3.0.3";
|
2021-09-01 06:20:00 +02:00
|
|
|
|
2020-05-26 06:26:39 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Shen-Language/shen-cl/releases/download/v${version}/shen-cl-v${version}-sources.tar.gz";
|
|
|
|
sha256 = "0mc10jlrxqi337m6ngwbr547zi4qgk69g1flz5dsddjy5x41j0yz";
|
|
|
|
};
|
2021-09-01 06:20:00 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ sbcl ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2020-05-26 06:26:39 +02:00
|
|
|
ln -s ${shen-sources} kernel
|
|
|
|
'';
|
2021-09-01 06:20:00 +02:00
|
|
|
|
|
|
|
buildFlags = [ "build-sbcl" ];
|
|
|
|
|
|
|
|
checkTarget = "test-sbcl";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-05-26 06:26:39 +02:00
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D bin/sbcl/shen $out/bin/shen-sbcl
|
|
|
|
'';
|
2021-09-01 06:20:00 +02:00
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2021-09-01 06:20:00 +02:00
|
|
|
homepage = "https://shenlanguage.org";
|
2020-05-26 06:26:39 +02:00
|
|
|
description = "Port of Shen running on Steel Bank Common Lisp";
|
2021-09-01 06:20:00 +02:00
|
|
|
changelog = "https://github.com/Shen-Language/shen-cl/raw/v${version}/CHANGELOG.md";
|
2020-05-29 21:07:53 +02:00
|
|
|
platforms = sbcl.meta.platforms;
|
2020-05-26 06:26:39 +02:00
|
|
|
maintainers = with maintainers; [ bsima ];
|
2023-10-29 11:47:02 +01:00
|
|
|
broken = true;
|
2020-05-26 06:26:39 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|