about summary refs log tree commit diff
path: root/pkgs/by-name/cm/cmd-polkit/package.nix
blob: 0a0c813f919d3d61d12c3e67439f0dfc6942d6b4 (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
{
  lib,
  stdenv,
  fetchFromGitHub,
  meson,
  ninja,
  glib,
  cmake,
  json-glib,
  polkit,
  gtk3,
  pkg-config,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "cmd-polkit";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "OmarCastro";
    repo = "cmd-polkit";
    rev = "v${finalAttrs.version}";
    hash = "sha256-oQaGV/ROP9YFyL8owduKOZLjqyx9D35xH67gNKECduQ=";
  };

  nativeBuildInputs = [
    meson
    cmake
    pkg-config
    ninja
  ];

  buildInputs = [
    json-glib
    glib
    polkit
    gtk3
  ];

  meta = with lib; {
    description = "Easily create polkit authentication agents by using commands";
    homepage = "https://github.com/OmarCastro/cmd-polkit";
    changelog = "https://github.com/OmarCastro/cmd-polkit/blob/${finalAttrs.src.rev}/CHANGELOG";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ daru-san ];
    mainProgram = "cmd-polkit";
    platforms = platforms.linux;
  };
})