1 { lib, stdenv, fetchFromGitHub, curl, autoconf, automake, makeWrapper, sbcl }:
3 stdenv.mkDerivation rec {
5 version = "21.10.14.111";
7 src = fetchFromGitHub {
11 sha256 = "sha256-K4RDNTY8g6MNjjiwXMmYaZm0fChJ1C1eTpc0h7ja1ds=";
15 # Load the name of the image from the environment variable so that
16 # it can be consistently overwritten. Using the command line
17 # argument in the wrapper did not work.
18 ./0001-get-image-from-environment.patch
25 configureFlags = [ "--prefix=${placeholder "out"}" ];
28 wrapProgram $out/bin/ros \
29 --set image `basename $out` \
30 --add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system -L sbcl-bin' \
31 --prefix PATH : ${lib.makeBinPath [ sbcl ]} --argv0 ros
34 nativeBuildInputs = [ autoconf automake makeWrapper ];
36 buildInputs = [ sbcl curl ];
39 description = "Roswell is a Lisp implementation installer/manager, launcher, and much more";
40 license = licenses.mit;
41 maintainers = with maintainers; [ hiro98 ];
42 platforms = platforms.unix;
43 homepage = "https://github.com/roswell/roswell";