mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
49 lines
953 B
Nix
49 lines
953 B
Nix
{
|
|
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-agent";
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|