depot/third_party/nixpkgs/pkgs/development/tools/roswell/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

46 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, curl, autoconf, automake, makeWrapper, sbcl }:
stdenv.mkDerivation rec {
pname = "roswell";
version = "21.06.14.110";
src = fetchFromGitHub {
owner = "roswell";
repo = pname;
rev = "v${version}";
sha256 = "18hxhz7skxvzabz5z0yjky4f3fsyfanafh0imkn5macp8aw3wsfm";
};
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
];
preConfigure = ''
sh bootstrap
'';
configureFlags = [ "--prefix=${placeholder "out"}" ];
postInstall = ''
wrapProgram $out/bin/ros \
--set image `basename $out` \
--add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system -L sbcl-bin' \
--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";
};
}