2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchurl
|
|
|
|
, shen-sources
|
|
|
|
, sbcl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "shen-sbcl";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "3.0.3";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2020-09-25 04:45:31 +00: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-18 10:52:07 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ sbcl ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
ln -s ${shen-sources} kernel
|
|
|
|
'';
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildFlags = [ "build-sbcl" ];
|
|
|
|
|
|
|
|
checkTarget = "test-sbcl";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D bin/sbcl/shen $out/bin/shen-sbcl
|
|
|
|
'';
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://shenlanguage.org";
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "Port of Shen running on Steel Bank Common Lisp";
|
2021-09-18 10:52:07 +00:00
|
|
|
changelog = "https://github.com/Shen-Language/shen-cl/raw/v${version}/CHANGELOG.md";
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = sbcl.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ bsima ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|