nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 69 lines 1.6 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 asciidoc, 6 cmake, 7 docbook_xsl, 8 pkg-config, 9 bash-completion, 10 openssl, 11 curl, 12 libxml2, 13 libxslt, 14 fetchpatch, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "lastpass-cli"; 19 version = "1.6.1"; 20 21 src = fetchFromGitHub { 22 owner = "lastpass"; 23 repo = "lastpass-cli"; 24 rev = "v${version}"; 25 sha256 = "sha256-Q0ZG5Ehg29STLeAerMoLfzjaH9JyPk7269RgiPmDJV8="; 26 }; 27 28 nativeBuildInputs = [ 29 asciidoc 30 cmake 31 docbook_xsl 32 pkg-config 33 ]; 34 35 buildInputs = [ 36 bash-completion 37 curl 38 openssl 39 libxml2 40 libxslt 41 ]; 42 43 installTargets = [ 44 "install" 45 "install-doc" 46 ]; 47 48 patches = [ 49 # CMake 3.1 is deprecated and no longer supported by CMake > 4 50 # https://github.com/NixOS/nixpkgs/issues/445447 51 # The patch comes from https://github.com/lastpass/lastpass-cli/pull/716 while 52 # it is not merged and integrated in a new release. 53 ./716-bump-cmake-minimum-version.patch 54 ]; 55 56 postInstall = '' 57 install -Dm644 -T ../contrib/lpass_zsh_completion $out/share/zsh/site-functions/_lpass 58 install -Dm644 -T ../contrib/completions-lpass.fish $out/share/fish/vendor_completions.d/lpass.fish 59 install -Dm755 -T ../contrib/examples/git-credential-lastpass $out/bin/git-credential-lastpass 60 ''; 61 62 meta = { 63 description = "Stores, retrieves, generates, and synchronizes passwords securely"; 64 homepage = "https://github.com/lastpass/lastpass-cli"; 65 license = lib.licenses.gpl2Plus; 66 platforms = lib.platforms.unix; 67 maintainers = with lib.maintainers; [ vinylen ]; 68 }; 69}