summary refs log tree commit diff
path: root/pkgs/applications/misc/keepass-plugins
diff options
context:
space:
mode:
authorandjscott <andjscott@users.noreply.github.com>2016-09-25 06:54:24 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2016-09-25 07:54:24 +0200
commit2e2542b389edcfdfab31ad4ca170fb921fb1827d (patch)
treee761d77e338da6e931688eb38f6e0a8d0be7307c /pkgs/applications/misc/keepass-plugins
parent7203a0e94cf1b753e27875b95aba0d4bbd184ee2 (diff)
downloadnixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.tar
nixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.tar.gz
nixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.tar.bz2
nixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.tar.lz
nixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.tar.xz
nixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.tar.zst
nixlib-2e2542b389edcfdfab31ad4ca170fb921fb1827d.zip
keepasshttp: init at 1.8.4.1 (#18439)
Diffstat (limited to 'pkgs/applications/misc/keepass-plugins')
-rw-r--r--pkgs/applications/misc/keepass-plugins/keepasshttp/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/misc/keepass-plugins/keepasshttp/default.nix b/pkgs/applications/misc/keepass-plugins/keepasshttp/default.nix
new file mode 100644
index 000000000000..5e43486b0752
--- /dev/null
+++ b/pkgs/applications/misc/keepass-plugins/keepasshttp/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, buildEnv, fetchFromGitHub, mono }:
+
+let
+  version = "1.8.4.1";
+  drv = stdenv.mkDerivation {
+    name = "keepasshttp-${version}";
+    src = fetchFromGitHub {
+      owner = "pfn";
+      repo = "keepasshttp";
+      rev = "${version}";
+      sha256 = "1074yv0pmzdwfwkx9fh7n2igdqwsyxypv55khkyng6synbv2p2fd";
+    };
+
+    meta = {
+      description = "KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP";
+      homepage    = https://github.com/pfn/keepasshttp;
+      platforms   = with stdenv.lib.platforms; linux;
+      license     = stdenv.lib.licenses.gpl3;
+    };
+
+    pluginFilename = "KeePassHttp.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 ]; }