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

View file

@ -15,6 +15,7 @@
./modules/programs.nix
./modules/wireguard.nix
./modules/security.nix
./modules/litecoin.nix
];
# This value determines the NixOS release from which the default

6
flake.lock generated
View file

@ -79,11 +79,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1768127708,
"narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=",
"lastModified": 1771008912,
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38",
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
"type": "github"
},
"original": {

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 ];
}