summary refs log tree commit diff
path: root/pkgs/tools/security/lastpass-cli/default.nix
diff options
context:
space:
mode:
authorYurii Matsiuk <ymatsiuk@users.noreply.github.com>2021-06-10 13:48:27 +0200
committerYurii Matsiuk <ymatsiuk@users.noreply.github.com>2021-06-10 13:48:27 +0200
commit75a47625ad3fcd357ca1f12920c2db75e4f2da56 (patch)
tree9d6eff51d70319f5fd1af157641be0c2ba9570be /pkgs/tools/security/lastpass-cli/default.nix
parent432fc2d9a67f92e05438dff5fdc2b39d33f77997 (diff)
downloadnixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.tar
nixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.tar.gz
nixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.tar.bz2
nixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.tar.lz
nixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.tar.xz
nixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.tar.zst
nixpkgs-75a47625ad3fcd357ca1f12920c2db75e4f2da56.zip
lastpass-cli: Add gitcredentials helper and format
Diffstat (limited to 'pkgs/tools/security/lastpass-cli/default.nix')
-rw-r--r--pkgs/tools/security/lastpass-cli/default.nix28
1 files changed, 22 insertions, 6 deletions
diff --git a/pkgs/tools/security/lastpass-cli/default.nix b/pkgs/tools/security/lastpass-cli/default.nix
index 8d2074f9835..3da3342e379 100644
--- a/pkgs/tools/security/lastpass-cli/default.nix
+++ b/pkgs/tools/security/lastpass-cli/default.nix
@@ -1,5 +1,16 @@
-{ stdenv, lib, fetchFromGitHub, asciidoc, cmake, docbook_xsl, pkg-config
-, bash-completion, openssl, curl, libxml2, libxslt }:
+{ stdenv
+, lib
+, fetchFromGitHub
+, asciidoc
+, cmake
+, docbook_xsl
+, pkg-config
+, bash-completion
+, openssl
+, curl
+, libxml2
+, libxslt
+}:
 
 stdenv.mkDerivation rec {
   pname = "lastpass-cli";
@@ -15,7 +26,11 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ asciidoc cmake docbook_xsl pkg-config ];
 
   buildInputs = [
-    bash-completion curl openssl libxml2 libxslt
+    bash-completion
+    curl
+    openssl
+    libxml2
+    libxslt
   ];
 
   installTargets = [ "install" "install-doc" ];
@@ -23,13 +38,14 @@ stdenv.mkDerivation rec {
   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;
+    homepage = "https://github.com/lastpass/lastpass-cli";
+    license = licenses.gpl2Plus;
+    platforms = platforms.unix;
     maintainers = with maintainers; [ cstrahan ];
   };
 }