1 { lib, stdenv, fetchurl, makeWrapper, perl, perlPackages }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/kpcli/${pname}-${version}.pl";
9 sha256 = "sha256-bIT4Y5JFeZv5stXOKXxBtdTsB4n39fqeh2dVaBbqRyw=";
12 nativeBuildInputs = [ makeWrapper ];
13 buildInputs = [ perl ];
18 mkdir -p $out/{bin,share}
19 cp ${src} $out/share/kpcli.pl
20 chmod +x $out/share/kpcli.pl
22 makeWrapper $out/share/kpcli.pl $out/bin/kpcli --set PERL5LIB \
23 "${with perlPackages; makePerlPath ([
24 CaptureTiny Clipboard Clone CryptRijndael SortNaturally TermReadKey TermShellUI FileKeePass TermReadLineGnu XMLParser
25 ] ++ lib.optional stdenv.isDarwin MacPasteboard)}"
30 description = "KeePass Command Line Interface";
32 KeePass Command Line Interface (CLI) / interactive shell.
33 Use this program to access and manage your KeePass 1.x or 2.x databases from a Unix-like command line.
35 license = licenses.artistic1;
36 homepage = "http://kpcli.sourceforge.net";
37 platforms = platforms.all;
38 maintainers = [ maintainers.j-keck ];