litecoin core

This commit is contained in:
Sergei Poljanski 2026-03-15 19:07:34 +02:00
commit 5e63b3a88e
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
3 changed files with 36 additions and 3 deletions

32
modules/litecoin.nix Normal file
View file

@ -0,0 +1,32 @@
# Litecoin Core v0.21.4 - full node wallet
{ config, pkgs, lib, ... }:
let
litecoin-core = pkgs.stdenv.mkDerivation rec {
pname = "litecoin-core";
version = "0.21.4";
src = pkgs.fetchurl {
url = "https://download.litecoin.org/litecoin-${version}/linux/litecoin-${version}-x86_64-linux-gnu.tar.gz";
hash = "sha256-hX/EEJHyuuZcO/D9TTiPypFfyToD8W3SV4rDzJKJg5A=";
};
sourceRoot = ".";
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
buildInputs = with pkgs; [
stdenv.cc.cc.lib
fontconfig
freetype
xorg.libxcb
];
installPhase = ''
mkdir -p $out/bin
cp litecoin-${version}/bin/* $out/bin/
'';
};
in
{
environment.systemPackages = [ litecoin-core ];
}