litecoin core
This commit is contained in:
parent
ec89f1d0ce
commit
5e63b3a88e
3 changed files with 36 additions and 3 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
./modules/programs.nix
|
./modules/programs.nix
|
||||||
./modules/wireguard.nix
|
./modules/wireguard.nix
|
||||||
./modules/security.nix
|
./modules/security.nix
|
||||||
|
./modules/litecoin.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
|
||||||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -79,11 +79,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768127708,
|
"lastModified": 1771008912,
|
||||||
"narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=",
|
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38",
|
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
32
modules/litecoin.nix
Normal file
32
modules/litecoin.nix
Normal 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 ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue