1{ stdenv, fetchurl, libopcodes }:
2
3with stdenv.lib;
4stdenv.mkDerivation rec {
5
6 name = "lightning-${version}";
7 version = "2.1.0";
8
9 src = fetchurl {
10 url = "mirror://gnu/lightning/${name}.tar.gz";
11 sha256 = "19j9nwl88k660045s40cbz5zrl1wpd2mcxnnc8qqnnaj311a58qz";
12 };
13
14 buildInputs = stdenv.lib.optional doCheck libopcodes;
15
16 doCheck = true;
17
18 meta = {
19 homepage = http://www.gnu.org/software/lightning/;
20 description = "Run-time code generation library";
21 longDescription = ''
22 GNU lightning is a library that generates assembly language code
23 at run-time; it is very fast, making it ideal for Just-In-Time
24 compilers, and it abstracts over the target CPU, as it exposes
25 to the clients a standardized RISC instruction set inspired by
26 the MIPS and SPARC chips.
27 '';
28 maintainers = [ maintainers.AndersonTorres ];
29 license = licenses.lgpl3Plus;
30 platforms = stdenv.lib.platforms.linux;
31 };
32}