2021-04-27 10:44:39 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, autoconf, automake, makeWrapper, sbcl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "roswell";
|
2021-08-04 17:00:13 +01:00
|
|
|
version = "21.06.14.110";
|
2021-04-27 10:44:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roswell";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-04 17:00:13 +01:00
|
|
|
sha256 = "18hxhz7skxvzabz5z0yjky4f3fsyfanafh0imkn5macp8aw3wsfm";
|
2021-04-27 10:44:39 +01:00
|
|
|
};
|
|
|
|
|
2021-08-04 17:00:13 +01: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 10:44:39 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sh bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--prefix=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ros \
|
2021-08-04 17:00:13 +01:00
|
|
|
--set image `basename $out` \
|
|
|
|
--add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system -L sbcl-bin' \
|
2021-04-27 10:44:39 +01: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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://github.com/roswell/roswell";
|
|
|
|
mainProgram = "ros";
|
|
|
|
};
|
|
|
|
}
|