From 96100e7675f96c90b4f1124a77f86e87d7a251ee Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Fri, 17 Mar 2023 21:39:18 -0400 Subject: [PATCH] passage: add missing dependency on tree(1) Dependency on tree(1) is used to pretty-print list of all stored passwords. Techically, is not needed to fetch or store password by its name, but without it "passage" without arguments would print error. --- pkgs/tools/security/passage/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/passage/default.nix b/pkgs/tools/security/passage/default.nix index 033b5e2028d..e232a3ac68d 100644 --- a/pkgs/tools/security/passage/default.nix +++ b/pkgs/tools/security/passage/default.nix @@ -1,5 +1,15 @@ -{ lib, stdenv, fetchFromGitHub, makeBinaryWrapper, bash, age, git ? null -, xclip ? null }: +{ lib +, stdenv +, fetchFromGitHub +, makeBinaryWrapper +, bash +, age +, git ? null +, xclip ? null +# Used to pretty-print list of all stored passwords, but is not needed to fetch +# or store password by its name. Most users would want this dependency. +, tree ? null +}: stdenv.mkDerivation { pname = "passage"; @@ -14,7 +24,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ makeBinaryWrapper ]; - extraPath = lib.makeBinPath [ age git xclip ]; + extraPath = lib.makeBinPath [ age git xclip tree ]; # Using $0 is bad, it causes --help to mention ".passage-wrapped". postInstall = ''