2021-12-14 10:51:23 -08:00
|
|
|
{ pkgs, lib, makeWrapper }:
|
2021-12-14 10:51:19 -08:00
|
|
|
let
|
2022-08-21 01:22:33 -07:00
|
|
|
nodejs = pkgs.nodejs-14_x;
|
2021-12-14 10:51:22 -08:00
|
|
|
nodePackages = import ./composition.nix { inherit pkgs nodejs; };
|
2021-12-14 10:51:19 -08:00
|
|
|
in
|
2021-12-14 10:51:22 -08:00
|
|
|
nodePackages.package.overrideAttrs (old: {
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
makeWrapper ${nodejs}/bin/node $out/bin/rtl \
|
|
|
|
--add-flags $out/lib/node_modules/rtl/rtl
|
|
|
|
'';
|
2021-12-14 10:51:23 -08:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A web interface for LND, c-lightning and Eclair";
|
|
|
|
homepage = "https://github.com/Ride-The-Lightning/RTL";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nixbitcoin earvstedt ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2021-12-14 10:51:22 -08:00
|
|
|
})
|