python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / qsudo / default.nix
blob5f9958f2d5d60c365fdd8b888586432c9781a50a
1 { lib
2 , mkDerivation
3 , fetchFromGitHub
4 , qmake
5 , qtbase
6 , sudo
7 }:
9 mkDerivation rec {
10   pname = "qsudo";
11   version = "2020.03.27";
13   src = fetchFromGitHub {
14     owner = "project-trident";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "06kg057vwkvafnk69m9rar4wih3vq4h36wbzwbfc2kndsnn47lfl";
18   };
20   sourceRoot = "source/src-qt5";
22   nativeBuildInputs = [
23     qmake
24   ];
26   buildInputs = [
27     qtbase
28     sudo
29   ];
31   postPatch = ''
32     substituteInPlace qsudo.pro --replace /usr/bin $out/bin
33   '';
35   meta = with lib; {
36     description = "Graphical sudo utility from Project Trident";
37     homepage = "https://github.com/project-trident/qsudo";
38     license = licenses.bsd2;
39     platforms = platforms.linux;
40     maintainers = [ maintainers.romildo ];
41   };