nixpkgs-suyu/pkgs/applications/blockchains/eclair/default.nix

39 lines
846 B
Nix
Raw Normal View History

2021-06-08 23:29:26 +02:00
{ lib
, stdenv
, fetchzip
, jq
, openjdk11
}:
stdenv.mkDerivation rec {
pname = "eclair";
2021-10-27 08:59:51 +02:00
version = "0.6.2";
revision = "6817d6f";
2021-06-08 23:29:26 +02:00
src = fetchzip {
url = "https://github.com/ACINQ/eclair/releases/download/v${version}/eclair-node-${version}-${revision}-bin.zip";
2021-10-27 08:59:51 +02:00
sha256 = "038r9mblm2r8mkxnv65k29r7xj22dff5gmvzv9xiy5zf9i45mmk8";
2021-06-08 23:29:26 +02:00
};
propagatedBuildInputs = [ jq openjdk11 ];
installPhase = ''
runHook preInstall
mkdir $out
cp -a * $out
mv $out/bin/eclair-node.sh $out/bin/eclair-node
rm $out/bin/eclair-node.bat
runHook postInstall
'';
meta = with lib; {
description = "A scala implementation of the Lightning Network";
homepage = "https://github.com/ACINQ/eclair";
license = licenses.asl20;
maintainers = with maintainers; [ prusnak ];
2021-10-27 08:59:51 +02:00
platforms = platforms.unix;
2021-06-08 23:29:26 +02:00
};
}