2018-07-09 22:34:32 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, gnome2, gnome3, libgksu,
|
2018-02-25 02:23:58 +00:00
|
|
|
intltool, libstartup_notification, gtk-doc, wrapGAppsHook
|
2014-08-05 21:28:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.0.2";
|
|
|
|
pname = "gksu";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://people.debian.org/~kov/gksu/${pname}-${version}.tar.gz";
|
2014-08-05 21:28:12 +00:00
|
|
|
sha256 = "0npfanlh28daapkg25q4fncxd89rjhvid5fwzjaw324x0g53vpm1";
|
|
|
|
};
|
|
|
|
|
2016-06-12 11:27:19 +00:00
|
|
|
nativeBuildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
pkgconfig intltool gtk-doc wrapGAppsHook
|
2016-06-12 11:27:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-09 22:34:32 +00:00
|
|
|
gtk2 gnome2.GConf libstartup_notification gnome3.libgnome-keyring
|
2016-06-12 11:27:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libgksu
|
|
|
|
];
|
|
|
|
|
2016-08-27 21:13:03 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2014-08-05 21:28:12 +00:00
|
|
|
patches = [
|
|
|
|
# https://savannah.nongnu.org/bugs/index.php?36127
|
|
|
|
./gksu-2.0.2-glib-2.31.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's|/usr/bin/x-terminal-emulator|-l gnome-terminal|g' gksu.desktop
|
|
|
|
'';
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--disable-nautilus-extension" ];
|
2014-08-05 21:28:12 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A graphical frontend for libgksu";
|
|
|
|
longDescription = ''
|
2019-09-03 22:49:40 +00:00
|
|
|
GKSu is a library that provides a GTK frontend to su and sudo.
|
2014-08-05 21:28:12 +00:00
|
|
|
It supports login shells and preserving environment when acting as
|
|
|
|
a su frontend. It is useful to menu items or other graphical
|
|
|
|
programs that need to ask a user's password to run another program
|
|
|
|
as another user.
|
|
|
|
'';
|
2018-12-01 17:32:32 +00:00
|
|
|
homepage = https://www.nongnu.org/gksu/;
|
2014-08-05 21:28:12 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-08-05 21:28:12 +00:00
|
|
|
};
|
|
|
|
}
|