1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/tools/security/lastpass-cli/default.nix
2021-01-16 23:49:59 -08:00

36 lines
1.1 KiB
Nix

{ stdenv, lib, fetchFromGitHub, asciidoc, cmake, docbook_xsl, pkg-config
, bash-completion, openssl, curl, libxml2, libxslt }:
stdenv.mkDerivation rec {
pname = "lastpass-cli";
version = "1.3.3";
src = fetchFromGitHub {
owner = "lastpass";
repo = pname;
rev = "v${version}";
sha256 = "168jg8kjbylfgalhicn0llbykd7kdc9id2989gg0nxlgmnvzl58a";
};
nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ];
buildInputs = [
bash-completion curl openssl libxml2 libxslt
];
installTargets = [ "install" "install-doc" ];
postInstall = ''
install -Dm644 -T ../contrib/lpass_zsh_completion $out/share/zsh/site-functions/_lpass
install -Dm644 -T ../contrib/completions-lpass.fish $out/share/fish/vendor_completions.d/lpass.fish
'';
meta = with lib; {
description = "Stores, retrieves, generates, and synchronizes passwords securely";
homepage = "https://github.com/lastpass/lastpass-cli";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ cstrahan ];
};
}