nixpkgs/pkgs/by-name/ro/roswell/package.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
2025-04-08 02:57:25 -04:00

64 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
curl,
autoconf,
automake,
makeWrapper,
sbcl,
}:
stdenv.mkDerivation rec {
pname = "roswell";
version = "24.10.115";
src = fetchFromGitHub {
owner = "roswell";
repo = "roswell";
rev = "v${version}";
hash = "sha256-2aYA1AzRPXaM82Sh+dMiQJcOAD0rzwV09VyLy0oS6as=";
};
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 = "Lisp implementation installer/manager and launcher";
license = licenses.mit;
maintainers = with maintainers; [ hiro98 ];
platforms = platforms.unix;
homepage = "https://github.com/roswell/roswell";
changelog = "https://github.com/roswell/roswell/blob/v${version}/ChangeLog";
mainProgram = "ros";
};
}