nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 42 lines 858 B view raw
1{ 2 lib, 3 stdenv, 4 fetchzip, 5 jq, 6 openjdk11, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "eclair"; 11 version = "0.8.0"; 12 revision = "0077471"; 13 14 src = fetchzip { 15 url = "https://github.com/ACINQ/eclair/releases/download/v${version}/eclair-node-${version}-${revision}-bin.zip"; 16 hash = "sha256-jkXdt1aQRVgItfFPuyh45uXjUFgJtKng/17Po5i7ang="; 17 }; 18 19 propagatedBuildInputs = [ 20 jq 21 openjdk11 22 ]; 23 24 installPhase = '' 25 runHook preInstall 26 27 mkdir $out 28 cp -a * $out 29 mv $out/bin/eclair-node.sh $out/bin/eclair-node 30 rm $out/bin/eclair-node.bat 31 32 runHook postInstall 33 ''; 34 35 meta = with lib; { 36 description = "Scala implementation of the Lightning Network"; 37 homepage = "https://github.com/ACINQ/eclair"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ prusnak ]; 40 platforms = platforms.unix; 41 }; 42}