added default nix
This commit is contained in:
parent
a74e954b69
commit
ecce30c3c5
54
default.nix
Normal file
54
default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user