nixpkgs/pkgs/development/interpreters/shen-sbcl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
949 B
Nix
Raw Normal View History

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