2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libopcodes
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lightning";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-28 21:21:41 +00:00
|
|
|
url = "mirror://gnu/lightning/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-TjmE/xzPC6MKmFIR1A/FwGsl8BTr3z2A0P49DIDdfA4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ libopcodes ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/lightning/";
|
|
|
|
description = "Run-time code generation library";
|
|
|
|
longDescription = ''
|
2022-12-28 21:21:41 +00:00
|
|
|
GNU lightning is a library that generates assembly language code at
|
|
|
|
run-time; it is very fast, making it ideal for Just-In-Time compilers, and
|
|
|
|
it abstracts over the target CPU, as it exposes to the clients a
|
|
|
|
standardized RISC instruction set inspired by the MIPS and SPARC chips.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-12-28 21:21:41 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2022-12-28 21:21:41 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
broken = stdenv.isDarwin; # failing tests
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-12-28 21:21:41 +00:00
|
|
|
})
|