3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/lastpass-cli/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

{ 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";
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ];
2018-01-06 15:42:52 +00:00
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
install -Dm755 -T ../contrib/examples/git-credential-lastpass $out/bin/git-credential-lastpass
'';
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 ];
};
}