1{
2 lib,
3 fetchurl,
4 libopcodes,
5 libiberty,
6 stdenv,
7 libbfd,
8 zlib,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "lightning";
13 version = "2.2.3";
14
15 src = fetchurl {
16 url = "mirror://gnu/lightning/lightning-${finalAttrs.version}.tar.gz";
17 hash = "sha256-wEXHozoAr/v+sRBm+lAsA5kuR0piupWXeq0G28FMaCk=";
18 };
19
20 outputs = [
21 "out"
22 "dev"
23 "info"
24 ];
25
26 buildInputs = [
27 libopcodes
28 libbfd
29 libiberty
30 zlib
31 ];
32
33 strictDeps = true;
34
35 configureFlags = [
36 (lib.enableFeature true "disassembler")
37 ];
38
39 doCheck = true;
40
41 meta = {
42 homepage = "https://www.gnu.org/software/lightning/";
43 changelog = "https://git.savannah.gnu.org/cgit/lightning.git/tree/ChangeLog?h=lightning-${finalAttrs.version}";
44 description = "Run-time code generation library";
45 longDescription = ''
46 GNU lightning is a library that generates assembly language code at
47 run-time; it is very fast, making it ideal for Just-In-Time compilers, and
48 it abstracts over the target CPU, as it exposes to the clients a
49 standardized RISC instruction set inspired by the MIPS and SPARC chips.
50 '';
51 maintainers = with lib.maintainers; [ ];
52 license = with lib.licenses; [ lgpl3Plus ];
53 platforms = lib.platforms.unix;
54 broken = stdenv.hostPlatform.isDarwin; # failing tests
55 };
56})