2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv, buildEnv, fetchFromGitHub, mono }:
|
2016-09-25 07:54:24 +02:00
|
|
|
|
|
|
|
let
|
2017-07-18 21:10:36 +02:00
|
|
|
version = "1.8.4.2";
|
2016-09-25 07:54:24 +02:00
|
|
|
drv = stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "keepasshttp";
|
|
|
|
inherit version;
|
2016-09-25 07:54:24 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pfn";
|
|
|
|
repo = "keepasshttp";
|
2020-11-01 23:39:49 +01:00
|
|
|
# rev = version;
|
2017-07-18 21:10:36 +02:00
|
|
|
# for 1.8.4.2 the tag is at the wrong commit (they fixed stuff
|
|
|
|
# afterwards and didn't move the tag), hence reference by commitid
|
|
|
|
rev = "c2c4eb5388a02169400cba7a67be325caabdcc37";
|
|
|
|
sha256 = "0bkzxggbqx7sql3sp46bqham6r457in0vrgh3ai3lw2jrw79pwmh";
|
2016-09-25 07:54:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pfn/keepasshttp";
|
2021-01-15 06:42:41 +01:00
|
|
|
platforms = with lib.platforms; linux;
|
|
|
|
license = lib.licenses.gpl3;
|
2016-09-25 07:54:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ]; }
|