From dc08f934bf4c395b1f84e1fa800da4d89baee5f4 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Mon, 9 Sep 2024 20:00:00 +0200 Subject: [PATCH] libbase58: init at 0.1.4 --- pkgs/by-name/li/libbase58/package.nix | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/li/libbase58/package.nix diff --git a/pkgs/by-name/li/libbase58/package.nix b/pkgs/by-name/li/libbase58/package.nix new file mode 100644 index 000000000000..94f7c4ec8bc7 --- /dev/null +++ b/pkgs/by-name/li/libbase58/package.nix @@ -0,0 +1,36 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + libgcrypt, + pkg-config, +}: + +stdenv.mkDerivation rec { + pname = "libbase58"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "bitcoin"; + repo = "libbase58"; + rev = "v${version}"; + hash = "sha256-CU55V89GbcYnrhwTPFMd13EGeCk/x9nQswUZ2JsYsUU="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ libgcrypt ]; + + meta = { + description = "C library for Bitcoin's base58 encoding"; + homepage = "https://github.com/bitcoin/libbase58"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ nagy ]; + mainProgram = "base58"; + platforms = lib.platforms.all; + }; +}