Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildEnv,
fetchurl,
mono,
}:
let
version = "1.0.4";
drv = stdenv.mkDerivation {
pname = "keepass-qrcodeview";
inherit version;
src = fetchurl {
url = "https://github.com/JanisEst/KeePassQRCodeView/releases/download/v${version}/KeePassQRCodeView.plgx";
sha256 = "e13c9f02bb0d79b479ca0e92490b822b5b88f49bb18ba2954d3bbe0808f46e6d";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out/lib/dotnet/keepass/
cp $src $out/lib/dotnet/keepass/
'';
meta = with lib; {
description = "Enables KeePass to display data as QR code images";
longDescription = ''
KeePassQRCodeView is a plugin for KeePass 2.x which shows QR codes for entry fields.
These codes can be scanned to copy the encoded data to the scanner (smartphone, ...)
'';
homepage = "https://github.com/JanisEst/KeePassQRCodeView";
platforms = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
];
license = licenses.mit;
maintainers = with maintainers; [ nazarewk ];
};
};
in
# Mono is required to compile plugin at runtime, after loading.
buildEnv {
name = drv.name;
paths = [
mono
drv
];
}