2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv
|
2020-05-26 04:26:39 +00:00
|
|
|
, fetchurl
|
|
|
|
, shen-sources
|
|
|
|
, sbcl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shen-sbcl-${version}";
|
|
|
|
version = "3.0.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Shen-Language/shen-cl/releases/download/v${version}/shen-cl-v${version}-sources.tar.gz";
|
|
|
|
sha256 = "0mc10jlrxqi337m6ngwbr547zi4qgk69g1flz5dsddjy5x41j0yz";
|
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
sbcl shen-sources
|
|
|
|
];
|
|
|
|
buildPhase = ''
|
|
|
|
ln -s ${shen-sources} kernel
|
|
|
|
make sbcl
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
install -m755 -D bin/sbcl/shen $out/bin/shen-sbcl
|
|
|
|
'';
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2020-05-26 04:26:39 +00:00
|
|
|
homepage = https://shenlanguage.org;
|
|
|
|
description = "Port of Shen running on Steel Bank Common Lisp";
|
2020-05-29 19:07:53 +00:00
|
|
|
platforms = sbcl.meta.platforms;
|
2020-05-26 04:26:39 +00:00
|
|
|
maintainers = with maintainers; [ bsima ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|