lightning: refactor
- get rid of pname parameterization - split outputs - strictDeps - get rid of nested with
This commit is contained in:
parent
97e21855ea
commit
be18265671
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, libopcodes
|
, libopcodes
|
||||||
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
@ -9,15 +9,19 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
version = "2.2.2";
|
version = "2.2.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/lightning/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
url = "mirror://gnu/lightning/lightning-${finalAttrs.version}.tar.gz";
|
||||||
hash = "sha256-CsqCQt6tF9YhF7z8sHjmqeqFbMgXQoE8noOUvM5zs+I=";
|
hash = "sha256-CsqCQt6tF9YhF7z8sHjmqeqFbMgXQoE8noOUvM5zs+I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" "info" ];
|
||||||
|
|
||||||
nativeCheckInputs = [ libopcodes ];
|
nativeCheckInputs = [ libopcodes ];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://www.gnu.org/software/lightning/";
|
homepage = "https://www.gnu.org/software/lightning/";
|
||||||
description = "Run-time code generation library";
|
description = "Run-time code generation library";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -26,9 +30,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
it abstracts over the target CPU, as it exposes to the clients a
|
it abstracts over the target CPU, as it exposes to the clients a
|
||||||
standardized RISC instruction set inspired by the MIPS and SPARC chips.
|
standardized RISC instruction set inspired by the MIPS and SPARC chips.
|
||||||
'';
|
'';
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||||
license = licenses.lgpl3Plus;
|
license = with lib.licenses; [ lgpl3Plus ];
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
broken = stdenv.isDarwin; # failing tests
|
broken = stdenv.isDarwin; # failing tests
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user