1{ lib
2, stdenv
3, fetchurl
4, autoreconfHook
5, gdbm
6, gmp
7, libffi
8, pkg-config
9, readline
10, texinfo
11}:
12
13stdenv.mkDerivation rec {
14 pname = "librep";
15 version = "0.92.7";
16
17 src = fetchurl {
18 url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
19 sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
20 };
21
22 nativeBuildInputs = [
23 autoreconfHook
24 pkg-config
25 texinfo
26 ];
27 buildInputs = [
28 gdbm
29 gmp
30 libffi
31 readline
32 ];
33
34 # ensure libsystem/ctype functions don't get duplicated when using clang
35 configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ];
36
37 setupHook = ./setup-hook.sh;
38
39 meta = with lib;{
40 homepage = "http://sawfish.tuxfamily.org/";
41 description = "Fast, lightweight, and versatile Lisp environment";
42 longDescription = ''
43 librep is a Lisp system for UNIX, comprising an interpreter, a byte-code
44 compiler, and a virtual machine. It can serve as an application extension
45 language but is also suitable for standalone scripts.
46 '';
47 license = licenses.gpl2Plus;
48 maintainers = [ maintainers.AndersonTorres ];
49 platforms = platforms.unix;
50 };
51}
52# TODO: investigate fetchFromGithub