about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorNicole Angel <nikki@mailbox.org>2015-11-22 18:20:41 +0100
committerRok Garbas <rok@garbas.si>2015-12-23 02:12:15 +0100
commite99beec0e16539c47c783b84592b79c088956527 (patch)
treec2bd273860e41194f1211a5a43f797642dbb81c6 /pkgs/applications/misc
parentdb1086f3a17dc73232a11c408ca1c43cdf785dc6 (diff)
downloadnixlib-e99beec0e16539c47c783b84592b79c088956527.tar
nixlib-e99beec0e16539c47c783b84592b79c088956527.tar.gz
nixlib-e99beec0e16539c47c783b84592b79c088956527.tar.bz2
nixlib-e99beec0e16539c47c783b84592b79c088956527.tar.lz
nixlib-e99beec0e16539c47c783b84592b79c088956527.tar.xz
nixlib-e99beec0e16539c47c783b84592b79c088956527.tar.zst
nixlib-e99beec0e16539c47c783b84592b79c088956527.zip
Keefox (keepass plugin): init at 1.5.4
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/keepass-plugins/keefox/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/misc/keepass-plugins/keefox/default.nix b/pkgs/applications/misc/keepass-plugins/keefox/default.nix
new file mode 100644
index 000000000000..e32f0b7ca012
--- /dev/null
+++ b/pkgs/applications/misc/keepass-plugins/keefox/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, buildEnv, fetchurl, mono, unzip }:
+
+let
+  version = "1.5.4";
+  drv = stdenv.mkDerivation {
+    name = "keefox-${version}";
+    src = fetchurl {
+      url    = "https://github.com/luckyrat/KeeFox/releases/download/v${version}/${version}.xpi";
+      sha256 = "c7c30770beb0ea32cbdee5311d03a9910fb7772695af3aa655e4ae64cd4d8335";
+    };
+
+    meta = {
+      description = "Keepass plugin for keefox Firefox add-on";
+      homepage    = http://keefox.org;
+      platforms   = with stdenv.lib.platforms; linux;
+      license     = stdenv.lib.licenses.gpl2;
+    };
+
+    buildInputs = [ unzip ];
+
+    pluginFilename = "KeePassRPC.plgx";
+
+    unpackCmd = "unzip $src deps/$pluginFilename ";
+    sourceRoot = "deps";
+
+    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 ]; }