diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2014-12-04 18:00:46 -0500 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2014-12-04 18:23:25 -0500 |
commit | aadb556e296da7a585f110f31ada0b8d9e9f031d (patch) | |
tree | 587f73e057ee9f220f39a53cbedba885c9f7c6b3 /pkgs/tools/security/lastpass-cli | |
parent | aecdd1e0a45bace7d927fc237364398d0f7ded1f (diff) |
lastpass-cli: new package
This adds the official lastpass CLI, a utility for manipulating lastpass logins.
Diffstat (limited to 'pkgs/tools/security/lastpass-cli')
-rw-r--r-- | pkgs/tools/security/lastpass-cli/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/security/lastpass-cli/default.nix b/pkgs/tools/security/lastpass-cli/default.nix new file mode 100644 index 0000000000000..a3652f62232f3 --- /dev/null +++ b/pkgs/tools/security/lastpass-cli/default.nix @@ -0,0 +1,34 @@ +{ stdenv, lib, fetchFromGitHub, pkgconfig, openssl, curl, libxml2, libxslt, asciidoc, docbook_xsl }: + +stdenv.mkDerivation rec { + name = "lastpass-cli-${version}"; + + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "lastpass"; + repo = "lastpass-cli"; + rev = "v${version}"; + sha256 = "1r06lifjc28sm88d6x3xwn76l9fjwjmd1wbmvr9j8rna889q0wl9"; + }; + + buildInputs = [ + openssl curl libxml2 pkgconfig asciidoc docbook_xsl libxslt + ]; + + prePatch = '' + substituteInPlace version.h --replace "0.3.0" "0.4.0" + ''; + + makeFlags = "PREFIX=$(out)"; + + installTargets = "install install-doc"; + + meta = with lib; { + description = "Stores, retrieves, generates, and synchronizes passwords securely"; + homepage = "https://github.com/lastpass/lastpass-cli"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ cstrahan ]; + }; +} |