16 stdenv.mkDerivation rec {
17 pname = "lastpass-cli";
20 src = fetchFromGitHub {
24 sha256 = "168jg8kjbylfgalhicn0llbykd7kdc9id2989gg0nxlgmnvzl58a";
28 # Pull fix pending upstream inclusion for -fno-common toolchains:
29 # https://github.com/lastpass/lastpass-cli/pull/576
31 name = "fno-common.patch";
32 url = "https://github.com/lastpass/lastpass-cli/commit/e3311cebdb29a3267843cf656a32f01c5062897e.patch";
33 sha256 = "1yjx2p98nb3n8ywc9lhf2zal5fswawb5i6lgnicdin23zngff5l8";
37 nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ];
47 installTargets = [ "install" "install-doc" ];
50 install -Dm644 -T ../contrib/lpass_zsh_completion $out/share/zsh/site-functions/_lpass
51 install -Dm644 -T ../contrib/completions-lpass.fish $out/share/fish/vendor_completions.d/lpass.fish
52 install -Dm755 -T ../contrib/examples/git-credential-lastpass $out/bin/git-credential-lastpass
56 description = "Stores, retrieves, generates, and synchronizes passwords securely";
57 homepage = "https://github.com/lastpass/lastpass-cli";
58 license = licenses.gpl2Plus;
59 platforms = platforms.unix;
60 maintainers = with maintainers; [ cstrahan ];