2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, curl
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, makeWrapper
|
|
|
|
, sbcl
|
|
|
|
}:
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "roswell";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "22.12.14.113";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roswell";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-tNOkZcdjwvrsleWMtcQ76KMBnssnuYQU3gqXnBVPN6w=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +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-05-03 20:48:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sh bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--prefix=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ros \
|
2021-08-05 21:33:18 +00:00
|
|
|
--set image `basename $out` \
|
|
|
|
--add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system -L sbcl-bin' \
|
2021-05-03 20:48:10 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ sbcl ]} --argv0 ros
|
|
|
|
'';
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
makeWrapper
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
sbcl
|
|
|
|
curl
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Lisp implementation installer/manager and launcher";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hiro98 ];
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.unix;
|
2021-05-03 20:48:10 +00:00
|
|
|
homepage = "https://github.com/roswell/roswell";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/roswell/roswell/blob/v${version}/ChangeLog";
|
2021-05-03 20:48:10 +00:00
|
|
|
mainProgram = "ros";
|
|
|
|
};
|
|
|
|
}
|