2021-05-03 20:48:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, autoconf, automake, makeWrapper, sbcl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "roswell";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "21.10.14.111";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roswell";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-K4RDNTY8g6MNjjiwXMmYaZm0fChJ1C1eTpc0h7ja1ds=";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [ sbcl curl ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Roswell is a Lisp implementation installer/manager, launcher, and much more";
|
|
|
|
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";
|
|
|
|
mainProgram = "ros";
|
|
|
|
};
|
|
|
|
}
|