Merge pull request #58137 from dtzWill/update/lastpass-cli-1.3.2

lastpass-cli: 1.3.1 -> 1.3.2, touchups

authored by Will Dietz and committed by GitHub d1b7aef5 0d1209a3

+9 -9
+9 -9
pkgs/tools/security/lastpass-cli/default.nix
··· 2 2 , bash-completion, openssl, curl, libxml2, libxslt }: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "lastpass-cli-${version}"; 6 - 7 - version = "1.3.1"; 5 + pname = "lastpass-cli"; 6 + version = "1.3.2"; 8 7 9 8 src = fetchFromGitHub { 10 9 owner = "lastpass"; 11 - repo = "lastpass-cli"; 10 + repo = pname; 12 11 rev = "v${version}"; 13 - sha256 = "11drzmfdvb8ydw1dxaz9zz8rk0jjqmfv076vydz05qqvgx59s38h"; 12 + sha256 = "12qjqvqzi3pq7hrdpq59bcxqy6yj1mhx145g9rky1jm2ipzpfayq"; 14 13 }; 15 14 16 15 nativeBuildInputs = [ asciidoc cmake docbook_xsl pkgconfig ]; ··· 21 20 22 21 enableParallelBuilding = true; 23 22 24 - cmakeFlags = [ 25 - "-DBASH_COMPLETION_COMPLETIONSDIR=./share/bash-completion/completions" 26 - ]; 23 + installTargets = [ "install" "install-doc" ]; 27 24 28 - installTargets = "install install-doc"; 25 + postInstall = '' 26 + install -Dm644 -T ../contrib/lpass_zsh_completion $out/share/zsh/site-functions/_lpass 27 + install -Dm644 -T ../contrib/completions-lpass.fish $out/share/fish/vendor_completions.d/lpass.fish 28 + ''; 29 29 30 30 meta = with lib; { 31 31 description = "Stores, retrieves, generates, and synchronizes passwords securely";