![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
983 B
Nix
33 lines
983 B
Nix
{ lib, stdenv, buildEnv, fetchzip, mono }:
|
|
|
|
let
|
|
version = "0.12.0";
|
|
drv = stdenv.mkDerivation {
|
|
pname = "keeagent";
|
|
inherit version;
|
|
|
|
src = fetchzip {
|
|
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";
|
|
homepage = "http://lechnology.com/software/keeagent";
|
|
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 ]; }
|