From 9499694330dbe106123bbf255da99851db816681 Mon Sep 17 00:00:00 2001 From: Daru Date: Tue, 9 Jul 2024 18:29:49 +0200 Subject: [PATCH] cmd-polkit: init at 0.3.0 --- pkgs/by-name/cm/cmd-polkit/package.nix | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/cm/cmd-polkit/package.nix diff --git a/pkgs/by-name/cm/cmd-polkit/package.nix b/pkgs/by-name/cm/cmd-polkit/package.nix new file mode 100644 index 000000000000..0a0c813f919d --- /dev/null +++ b/pkgs/by-name/cm/cmd-polkit/package.nix @@ -0,0 +1,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; + }; +})