about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/cardpeek/default.nix
blob: 1d5baf9f6b34839f7ed70997e687604092a203d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook,
  glib, gtk3, pcsclite, lua5_2, curl, readline }:
let
  version = "0.8.4";
in
  stdenv.mkDerivation {
    pname = "cardpeek";
    inherit version;

    src = fetchFromGitHub {
      owner = "L1L1";
      repo = "cardpeek";
      rev = "cardpeek-${version}";
      sha256 = "1ighpl7nvcvwnsd6r5h5n9p95kclwrq99hq7bry7s53yr57l6588";
    };

    nativeBuildInputs = [ pkg-config autoreconfHook ];
    buildInputs = [ glib gtk3 pcsclite lua5_2 curl readline ];

    enableParallelBuilding = true;

    meta = with lib; {
      homepage = "https://github.com/L1L1/cardpeek";
      description = "A tool to read the contents of ISO7816 smart cards";
      license = licenses.gpl3Plus;
      platforms = with platforms; linux ++ darwin;
      maintainers = with maintainers; [ embr ];
    };
  }