mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 13:14:42 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
860 B
Nix
43 lines
860 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
jq,
|
|
openjdk11,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "eclair";
|
|
version = "0.8.0";
|
|
revision = "0077471";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/ACINQ/eclair/releases/download/v${version}/eclair-node-${version}-${revision}-bin.zip";
|
|
hash = "sha256-jkXdt1aQRVgItfFPuyh45uXjUFgJtKng/17Po5i7ang=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Scala implementation of the Lightning Network";
|
|
homepage = "https://github.com/ACINQ/eclair";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ prusnak ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|