about summary refs log tree commit diff
path: root/pkgs/by-name/gt/gtkhash/package.nix
blob: 87cfcf374bd078448d42cfd940d24788f7f834ac (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ lib
, fetchFromGitHub
, stdenv
, meson
, ninja
, cmake
, pkg-config
, wrapGAppsHook3
, gtk3
, glib
, openssl
, nettle
, libb2
, libgcrypt
}:

stdenv.mkDerivation rec {
  pname = "gtkhash";
  version = "1.5";

  src = fetchFromGitHub {
    repo = "gtkhash";
    owner = "gtkhash";
    rev = "v${version}";
    hash = "sha256-XpgTolpTSsW3i0xk19tt4cn9qANoeiq7YnBBR6g8ioU=";
  };

  nativeBuildInputs = [
    meson
    ninja
    cmake
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    gtk3
    glib
    openssl
    nettle
    libb2
    libgcrypt
  ];

  strictDeps = true;
  meta = with lib; {
    description = "A cross-platform desktop utility for computing message digests or checksums";
    homepage = "https://gtkhash.org";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ ByteSudoer ];
    mainProgram = "gtkhash";
    platforms = platforms.unix;
  };
}