2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, gnome3, libgksu,
|
2016-06-12 13:27:19 +02:00
|
|
|
intltool, libstartup_notification, gtk_doc, wrapGAppsHook
|
2014-08-05 23:28:12 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.0.2";
|
|
|
|
pname = "gksu";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://people.debian.org/~kov/gksu/${name}.tar.gz";
|
|
|
|
sha256 = "0npfanlh28daapkg25q4fncxd89rjhvid5fwzjaw324x0g53vpm1";
|
|
|
|
};
|
|
|
|
|
2016-06-12 13:27:19 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig intltool gtk_doc wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-09-11 23:24:51 +02:00
|
|
|
gtk2 gnome3.gconf libstartup_notification gnome3.libgnome_keyring
|
2016-06-12 13:27:19 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libgksu
|
|
|
|
];
|
|
|
|
|
2016-08-27 23:13:03 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2014-08-05 23:28:12 +02: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--disable-nautilus-extension";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A graphical frontend for libgksu";
|
|
|
|
longDescription = ''
|
|
|
|
GKSu is a library that provides a Gtk+ frontend to su and sudo.
|
|
|
|
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.
|
|
|
|
'';
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.nongnu.org/gksu/;
|
2014-08-05 23:28:12 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-08-05 23:28:12 +02:00
|
|
|
};
|
|
|
|
}
|