3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/keepass-plugins/keeagent/default.nix

33 lines
983 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, buildEnv, fetchzip, mono }:
let
2020-06-03 09:29:04 +01:00
version = "0.12.0";
drv = stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "keeagent";
inherit version;
src = fetchzip {
2020-06-03 09:29:04 +01:00
url = "https://lechnology.com/wp-content/uploads/2020/05/KeeAgent_v0.12.0.zip";
sha256 = "0fcfbj3yikiv3dmp69236h9r3c416amdq849kn131w1129gb68xd";
stripRoot = false;
};
meta = {
description = "KeePass plugin to allow other programs to access SSH keys stored in a KeePass database for authentication";
2018-08-09 20:15:44 +01:00
homepage = "http://lechnology.com/software/keeagent";
2021-01-15 05:42:41 +00:00
platforms = with lib.platforms; linux;
license = 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 ]; }