2022-12-11 10:25:54 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, curl
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, makeWrapper
|
|
|
|
, sbcl
|
|
|
|
}:
|
2021-04-27 09:44:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "roswell";
|
2023-10-19 01:30:51 +00:00
|
|
|
version = "23.10.14.114";
|
2021-04-27 09:44:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roswell";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-19 01:30:51 +00:00
|
|
|
hash = "sha256-70BSwRKj1WPvWxQzWPrs8ECkcVosAUaX5cK7FaDUhRc=";
|
2021-04-27 09:44:39 +00:00
|
|
|
};
|
|
|
|
|
2021-08-04 16:00:13 +00:00
|
|
|
patches = [
|
|
|
|
# Load the name of the image from the environment variable so that
|
|
|
|
# it can be consistently overwritten. Using the command line
|
|
|
|
# argument in the wrapper did not work.
|
|
|
|
./0001-get-image-from-environment.patch
|
|
|
|
];
|
|
|
|
|
2021-04-27 09:44:39 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sh bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--prefix=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ros \
|
2021-08-04 16:00:13 +00:00
|
|
|
--set image `basename $out` \
|
|
|
|
--add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system -L sbcl-bin' \
|
2021-04-27 09:44:39 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ sbcl ]} --argv0 ros
|
|
|
|
'';
|
|
|
|
|
2022-12-11 10:25:54 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
makeWrapper
|
|
|
|
];
|
2021-04-27 09:44:39 +00:00
|
|
|
|
2022-12-11 10:25:54 +00:00
|
|
|
buildInputs = [
|
|
|
|
sbcl
|
|
|
|
curl
|
|
|
|
];
|
2021-04-27 09:44:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-11 10:25:54 +00:00
|
|
|
description = "Lisp implementation installer/manager and launcher";
|
2021-04-27 09:44:39 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hiro98 ];
|
2022-07-21 08:41:37 +00:00
|
|
|
platforms = platforms.unix;
|
2021-04-27 09:44:39 +00:00
|
|
|
homepage = "https://github.com/roswell/roswell";
|
2022-12-11 10:25:54 +00:00
|
|
|
changelog = "https://github.com/roswell/roswell/blob/v${version}/ChangeLog";
|
2021-04-27 09:44:39 +00:00
|
|
|
mainProgram = "ros";
|
|
|
|
};
|
|
|
|
}
|