lastpass-cli: Add gitcredentials helper and format
This commit is contained in:
parent
432fc2d9a6
commit
75a47625ad
|
@ -1,5 +1,16 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, asciidoc, cmake, docbook_xsl, pkg-config
|
{ stdenv
|
||||||
, bash-completion, openssl, curl, libxml2, libxslt }:
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, asciidoc
|
||||||
|
, cmake
|
||||||
|
, docbook_xsl
|
||||||
|
, pkg-config
|
||||||
|
, bash-completion
|
||||||
|
, openssl
|
||||||
|
, curl
|
||||||
|
, libxml2
|
||||||
|
, libxslt
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "lastpass-cli";
|
pname = "lastpass-cli";
|
||||||
|
@ -15,7 +26,11 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ];
|
nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
bash-completion curl openssl libxml2 libxslt
|
bash-completion
|
||||||
|
curl
|
||||||
|
openssl
|
||||||
|
libxml2
|
||||||
|
libxslt
|
||||||
];
|
];
|
||||||
|
|
||||||
installTargets = [ "install" "install-doc" ];
|
installTargets = [ "install" "install-doc" ];
|
||||||
|
@ -23,13 +38,14 @@ stdenv.mkDerivation rec {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 -T ../contrib/lpass_zsh_completion $out/share/zsh/site-functions/_lpass
|
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 -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; {
|
meta = with lib; {
|
||||||
description = "Stores, retrieves, generates, and synchronizes passwords securely";
|
description = "Stores, retrieves, generates, and synchronizes passwords securely";
|
||||||
homepage = "https://github.com/lastpass/lastpass-cli";
|
homepage = "https://github.com/lastpass/lastpass-cli";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ cstrahan ];
|
maintainers = with maintainers; [ cstrahan ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue