2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, gdbm
|
|
|
|
, gmp
|
|
|
|
, libffi
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, texinfo
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "librep";
|
|
|
|
version = "0.92.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-15 17:15:38 +00:00
|
|
|
url = "https://download.tuxfamily.org/librep/librep_${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-SKGWeax8BTCollfeGP/knFdZpf9w/IRJKLDl0AOVrK4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
texinfo
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
gdbm
|
|
|
|
gmp
|
|
|
|
libffi
|
|
|
|
readline
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
# ensure libsystem/ctype functions don't get duplicated when using clang
|
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "http://sawfish.tuxfamily.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast, lightweight, and versatile Lisp environment";
|
|
|
|
longDescription = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
librep is a Lisp system for UNIX, comprising an interpreter, a byte-code
|
|
|
|
compiler, and a virtual machine. It can serve as an application extension
|
|
|
|
language but is also suitable for standalone scripts.
|
|
|
|
'';
|
2023-07-15 17:15:38 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
# TODO: investigate fetchFromGithub
|