2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-06-18 07:06:33 +00:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, sudo
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qsudo";
|
|
|
|
version = "2020.03.27";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "project-trident";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "06kg057vwkvafnk69m9rar4wih3vq4h36wbzwbfc2kndsnn47lfl";
|
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/src-qt5";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
sudo
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace qsudo.pro --replace /usr/bin $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "Graphical sudo utility from Project Trident";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qsudo";
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://github.com/project-trident/qsudo";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|