lastpass-cli: Add gitcredentials helper and format

+22 -6
+22 -6
pkgs/tools/security/lastpass-cli/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, asciidoc, cmake, docbook_xsl, pkg-config 2 - , bash-completion, openssl, curl, libxml2, libxslt }: 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , asciidoc 5 + , cmake 6 + , docbook_xsl 7 + , pkg-config 8 + , bash-completion 9 + , openssl 10 + , curl 11 + , libxml2 12 + , libxslt 13 + }: 3 14 4 15 stdenv.mkDerivation rec { 5 16 pname = "lastpass-cli"; ··· 15 26 nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ]; 16 27 17 28 buildInputs = [ 18 - bash-completion curl openssl libxml2 libxslt 29 + bash-completion 30 + curl 31 + openssl 32 + libxml2 33 + libxslt 19 34 ]; 20 35 21 36 installTargets = [ "install" "install-doc" ]; ··· 23 38 postInstall = '' 24 39 install -Dm644 -T ../contrib/lpass_zsh_completion $out/share/zsh/site-functions/_lpass 25 40 install -Dm644 -T ../contrib/completions-lpass.fish $out/share/fish/vendor_completions.d/lpass.fish 41 + install -Dm755 -T ../contrib/examples/git-credential-lastpass $out/bin/git-credential-lastpass 26 42 ''; 27 43 28 44 meta = with lib; { 29 45 description = "Stores, retrieves, generates, and synchronizes passwords securely"; 30 - homepage = "https://github.com/lastpass/lastpass-cli"; 31 - license = licenses.gpl2Plus; 32 - platforms = platforms.unix; 46 + homepage = "https://github.com/lastpass/lastpass-cli"; 47 + license = licenses.gpl2Plus; 48 + platforms = platforms.unix; 33 49 maintainers = with maintainers; [ cstrahan ]; 34 50 }; 35 51 }