55 lines
881 B
Nix
55 lines
881 B
Nix
|
{
|
||
|
|
||
|
lib,
|
||
|
|
||
|
stdenv,
|
||
|
|
||
|
fetchurl,
|
||
|
|
||
|
autoPatchelfHook,
|
||
|
|
||
|
}:
|
||
|
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "Alby Hub";
|
||
|
version = "1.6.0";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "https://github.com/getAlby/hub/releases/download/v${version}/albyhub-Server-Linux-x86_64.tar.bz2";
|
||
|
hash = "sha256-nDrrAWAIWbGTHbTMinLMyQV33UkNCR0o+zrOMvigasw=";
|
||
|
};
|
||
|
|
||
|
sourceRoot = ".";
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
autoPatchelfHook
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
stdenv.cc.cc.lib
|
||
|
];
|
||
|
|
||
|
preBuild = ''
|
||
|
addAutoPatchelfSearchPath ./lib
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/lib/albyhub
|
||
|
|
||
|
runHook preInstall
|
||
|
install -m755 -D ./bin/albyhub $out/bin/albyhub
|
||
|
install -m755 -D ./lib/* $out/lib/albyhub
|
||
|
runHook postInstall
|
||
|
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Alby Hub - Your own lightning node connected to every app";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = with maintainers; [ ];
|
||
|
homepage = "https://github.com/getAlby/hub";
|
||
|
};
|
||
|
|
||
|
}
|