[Nix-dev] ksshaskpass
Kirill Elagin
kirelagin at gmail.com
Fri Mar 23 00:30:42 CET 2012
I have no idea how to integrate ksshaskpass.
Currently x11-ssh-askpass is hard-coded into
'nixos/modules/services/x11/display-managers/default.nix'. Should
there be an option to choose which ssh-askpass program to use (I know
that there exists at least one more such a program)? Where should this
option be and what type should it have?
By the way, in my opinion, things like ssh-askpass should be
configurable per-user. For now, I've simply put a script which exports
'SSH_ASKPASS=ksshaskpass' into my ~/.kde/env.
Does anyone know what to do?
---
pkgs/tools/networking/ksshaskpass/default.nix | 23 +++++++++++++++++++++++
pkgs/top-level/all-packages.nix | 2 ++
2 files changed, 25 insertions(+)
create mode 100644 pkgs/tools/networking/ksshaskpass/default.nix
diff --git a/pkgs/tools/networking/ksshaskpass/default.nix
b/pkgs/tools/networking/ksshaskpass/default.nix
new file mode 100644
index 0000000..701fed0
--- /dev/null
+++ b/pkgs/tools/networking/ksshaskpass/default.nix
@@ -0,0 +1,23 @@
+{stdenv, fetchurl, kdelibs}:
+
+stdenv.mkDerivation {
+ name = "ksshaskpass-0.5.3";
+
+ src = fetchurl {
+ url = http://kde-apps.org/CONTENT/content-files/50971-ksshaskpass-0.5.3.tar.gz;
+ sha1 = "e3f83e1cc1105cc4476fdc5a9300d770aa10b78b";
+ };
+
+ buildInputs = [ kdelibs ];
+
+ patchPhase = ''
+ sed -i '/^TryExec/d;s/^Exec=.*/Exec=ssh-add/;' src/ksshaskpass.desktop
+ '';
+
+ meta = {
+ homepage = http://kde-apps.org/content/show.php?content=50971;
+ description = "A KDE 4 version of ssh-askpass with KWallet support";
+ license = "GPL";
+ inherit (kdelibs.meta) platforms;
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a6fe5be..6b83657 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8004,6 +8004,8 @@ let
krusader = callPackage ../applications/misc/krusader { };
+ ksshaskpass = callPackage ../tools/networking/ksshaskpass { };
+
ktorrent = callPackage ../applications/networking/p2p/ktorrent { };
kuickshow = callPackage ../applications/graphics/kuickshow { };
--
--
Кирилл Елагин
More information about the nix-dev
mailing list