depot/third_party/nixpkgs/pkgs/by-name/li/libbase58/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
703 B
Nix

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