Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 (finalAttrs: { 14 pname = "librep"; 15 version = "0.92.7"; 16 17 src = fetchurl { 18 url = "https://download.tuxfamily.org/librep/librep_${finalAttrs.version}.tar.xz"; 19 hash = "sha256-SKGWeax8BTCollfeGP/knFdZpf9w/IRJKLDl0AOVrK4="; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 texinfo 26 ]; 27 28 buildInputs = [ 29 gdbm 30 gmp 31 libffi 32 readline 33 ]; 34 35 strictDeps = true; 36 37 # ensure libsystem/ctype functions don't get duplicated when using clang 38 configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ]; 39 40 setupHook = ./setup-hook.sh; 41 42 meta = { 43 homepage = "http://sawfish.tuxfamily.org/"; 44 description = "Fast, lightweight, and versatile Lisp environment"; 45 longDescription = '' 46 librep is a Lisp system for UNIX, comprising an interpreter, a byte-code 47 compiler, and a virtual machine. It can serve as an application extension 48 language but is also suitable for standalone scripts. 49 ''; 50 license = lib.licenses.gpl2Plus; 51 maintainers = [ lib.maintainers.AndersonTorres ]; 52 platforms = lib.platforms.unix; 53 }; 54}) 55# TODO: investigate fetchFromGithub