cl-rest: rename pkg to clightning-rest

This commit is contained in:
Erik Arvstedt 2022-05-01 15:52:30 +02:00
parent e31e5788b2
commit c30aa33c15
No known key found for this signature in database
GPG key ID: 33312B944DD97846
7 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,23 @@
{ pkgs, lib, makeWrapper }:
let
inherit (pkgs) nodejs;
nodePackages = import ./composition.nix { inherit pkgs nodejs; };
in
nodePackages.package.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [
makeWrapper
];
postInstall = ''
makeWrapper ${nodejs}/bin/node $out/bin/cl-rest \
--add-flags $out/lib/node_modules/c-lightning-rest/cl-rest
'';
meta = with lib; {
description = "REST API for C-Lightning";
homepage = "https://github.com/Ride-The-Lightning/c-lightning-REST";
license = licenses.mit;
maintainers = with maintainers; [ nixbitcoin earvstedt ];
platforms = platforms.unix;
};
})