summary refs log tree commit diff
path: root/pkgs/applications/misc/keepass-plugins
diff options
context:
space:
mode:
authorLeon Isenberg <leon.isenberg@t-online.de>2017-03-10 16:36:36 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-03-15 17:55:57 +0100
commit6505c6e3df519bbf800f302e9ba14923b9dabee5 (patch)
treedb109d2e90101a905678a95ff4edfbdaf3821414 /pkgs/applications/misc/keepass-plugins
parenta8cca7037e445915b5c58a582eae270e65065678 (diff)
downloadnixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.tar
nixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.tar.gz
nixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.tar.bz2
nixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.tar.lz
nixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.tar.xz
nixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.tar.zst
nixpkgs-6505c6e3df519bbf800f302e9ba14923b9dabee5.zip
keepass-keeagent: init at 0.8.1
[Bjørn: change fetchurl indent 4 -> 2 spaces.]
Diffstat (limited to 'pkgs/applications/misc/keepass-plugins')
-rw-r--r--pkgs/applications/misc/keepass-plugins/keeagent/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/misc/keepass-plugins/keeagent/default.nix b/pkgs/applications/misc/keepass-plugins/keeagent/default.nix
new file mode 100644
index 00000000000..cd83d2a44e1
--- /dev/null
+++ b/pkgs/applications/misc/keepass-plugins/keeagent/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, buildEnv, fetchzip, mono }:
+
+let
+  version = "0.8.1";
+  drv = stdenv.mkDerivation {
+    name = "keeagent-${version}";
+
+    src = fetchzip {
+      url = http://lechnology.com/wp-content/uploads/2016/07/KeeAgent_v0.8.1.zip;
+      sha256 = "16x1qrnzg0xkvi7w29wj3z0ldmql2vcbwxksbsmnidzmygwg98hk";
+      stripRoot = false;
+    };
+
+    meta = {
+      description = "KeePass plugin to allow other programs to access SSH keys stored in a KeePass database for authentication";
+      homepage    = http://lechnology.com/software/keeagent;
+      platforms   = with stdenv.lib.platforms; linux;
+      license     = stdenv.lib.licenses.gpl2;
+      maintainers = [ ];
+    };
+
+    pluginFilename = "KeeAgent.plgx";
+
+    installPhase = ''
+      mkdir -p $out/lib/dotnet/keepass/
+      cp $pluginFilename $out/lib/dotnet/keepass/$pluginFilename
+    '';
+  };
+in
+  # Mono is required to compile plugin at runtime, after loading.
+  buildEnv { name = drv.name; paths = [ mono drv ]; }