Skip to content

Commit

Permalink
Merge pull request #89765 from romildo/upd.qsudo
Browse files Browse the repository at this point in the history
qsudo: init at 2020.03.27
  • Loading branch information
romildo committed Jun 10, 2020
2 parents 7a25acb + da6ab66 commit 1f1f02b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/applications/misc/qsudo/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ stdenv
, 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";
};

sourceRoot = "source/src-qt5";

nativeBuildInputs = [
qmake
];

buildInputs = [
qtbase
sudo
];

postPatch = ''
substituteInPlace qsudo.pro --replace /usr/bin $out/bin
'';

meta = with stdenv.lib; {
description = "Graphical sudo utility from Project Trident";
homepage = "https://github.com/project-trident/qsudo";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21714,6 +21714,8 @@ in
};
};

qsudo = libsForQt5.callPackage ../applications/misc/qsudo { };

qsynth = libsForQt5.callPackage ../applications/audio/qsynth { };

qtbitcointrader = libsForQt5.callPackage ../applications/misc/qtbitcointrader { };
Expand Down

0 comments on commit 1f1f02b

Please sign in to comment.