nixpkgs/pkgs/development/compilers/gcl/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
860 B
Nix

{ lib, stdenv, fetchurl, mpfr, m4, binutils, emacs, zlib, which
, texinfo, libX11, xorgproto, libXi, gmp
, libXext, libXt, libXaw, libXmu } :
assert stdenv ? cc ;
assert stdenv.cc.isGNU ;
assert stdenv.cc ? libc ;
assert stdenv.cc.libc != null ;
stdenv.mkDerivation rec {
pname = "gcl";
version = "2.6.14";
src = fetchurl {
url = "mirror://gnu/gcl/gcl-${version}.tar.gz";
hash = "sha256-CfNBfFEqoXM6Y4gJ06Y6wpDuuUSL6CeV9bZoG9MHNFo=";
};
buildInputs = [
mpfr m4 binutils emacs gmp
libX11 xorgproto libXi
libXext libXt libXaw libXmu
zlib which texinfo
];
configureFlags = [
"--enable-ansi"
];
meta = with lib; {
description = "GNU Common Lisp compiler working via GCC";
mainProgram = "gcl";
maintainers = lib.teams.lisp.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}