btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / li / libbase58 / package.nix
blob94f7c4ec8bc74b5d7b3a89b952342c8b7d3a585d
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   libgcrypt,
7   pkg-config,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "libbase58";
12   version = "0.1.4";
14   src = fetchFromGitHub {
15     owner = "bitcoin";
16     repo = "libbase58";
17     rev = "v${version}";
18     hash = "sha256-CU55V89GbcYnrhwTPFMd13EGeCk/x9nQswUZ2JsYsUU=";
19   };
21   nativeBuildInputs = [
22     autoreconfHook
23     pkg-config
24   ];
26   buildInputs = [ libgcrypt ];
28   meta = {
29     description = "C library for Bitcoin's base58 encoding";
30     homepage = "https://github.com/bitcoin/libbase58";
31     license = lib.licenses.mit;
32     maintainers = with lib.maintainers; [ nagy ];
33     mainProgram = "base58";
34     platforms = lib.platforms.all;
35   };