nixpkgs/pkgs/by-name/li/librep/package.nix
Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00

57 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
autoreconfHook,
gdbm,
gmp,
libffi,
pkg-config,
readline,
texinfo,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "librep";
version = "0.92.7";
src = fetchurl {
url = "https://download.tuxfamily.org/librep/librep_${finalAttrs.version}.tar.xz";
hash = "sha256-SKGWeax8BTCollfeGP/knFdZpf9w/IRJKLDl0AOVrK4=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
texinfo
];
buildInputs = [
gdbm
gmp
libffi
readline
];
strictDeps = true;
# ensure libsystem/ctype functions don't get duplicated when using clang
configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "CFLAGS=-std=gnu89" ];
setupHook = ./setup-hook.sh;
meta = {
homepage = "http://sawfish.tuxfamily.org/";
description = "Fast, lightweight, and versatile Lisp environment";
longDescription = ''
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 = lib.licenses.gpl2Plus;
maintainers = [ lib.maintainers.AndersonTorres ];
platforms = lib.platforms.unix;
};
})
# TODO: investigate fetchFromGithub