2018-01-06 15:42:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, asciidoc, cmake, docbook_xsl, pkgconfig
|
|
|
|
, bash-completion, openssl, curl, libxml2, libxslt }:
|
2014-12-04 23:00:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lastpass-cli-${version}";
|
|
|
|
|
2018-03-20 16:37:05 +00:00
|
|
|
version = "1.3.0";
|
2014-12-04 23:00:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lastpass";
|
|
|
|
repo = "lastpass-cli";
|
|
|
|
rev = "v${version}";
|
2018-03-20 16:37:05 +00:00
|
|
|
sha256 = "0k3vnlibv05wnn6qn3qjlcyj2s07di7zkmdnijd6cp1hfk76z2r5";
|
2014-12-04 23:00:46 +00:00
|
|
|
};
|
|
|
|
|
2018-01-06 15:42:52 +00:00
|
|
|
nativeBuildInputs = [ asciidoc cmake docbook_xsl pkgconfig ];
|
|
|
|
|
2014-12-04 23:00:46 +00:00
|
|
|
buildInputs = [
|
2018-01-06 15:42:52 +00:00
|
|
|
bash-completion curl openssl libxml2 libxslt
|
2014-12-04 23:00:46 +00:00
|
|
|
];
|
|
|
|
|
2018-01-06 15:42:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBASH_COMPLETION_COMPLETIONSDIR=./share/bash-completion/completions"
|
|
|
|
];
|
2014-12-04 23:00:46 +00:00
|
|
|
|
|
|
|
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;
|
2018-01-06 15:42:52 +00:00
|
|
|
platforms = platforms.unix;
|
2014-12-04 23:00:46 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|