1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/misc/keepass-plugins/keefox/default.nix

34 lines
979 B
Nix
Raw Normal View History

2015-11-22 17:20:41 +00:00
{ stdenv, buildEnv, fetchurl, mono, unzip }:
let
2016-09-15 21:25:19 +01:00
version = "1.6.3";
2015-11-22 17:20:41 +00:00
drv = stdenv.mkDerivation {
name = "keefox-${version}";
src = fetchurl {
url = "https://github.com/luckyrat/KeeFox/releases/download/v${version}/${version}.xpi";
2016-09-15 21:25:19 +01:00
sha256 = "dc26c51a6b3690d4bec527c3732a72f67a85b804c60db5e699260552e2dd2bd9";
2015-11-22 17:20:41 +00:00
};
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 ]; }