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
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librep";
|
|
|
|
version = "0.92.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-09 03:18:52 +00:00
|
|
|
url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
gdbm
|
|
|
|
gmp
|
|
|
|
libffi
|
|
|
|
readline
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib;{
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
# TODO: investigate fetchFromGithub
|