From fd68039fdcc2a2ebe08c6a0e1ea46c5f07065f52 Mon Sep 17 00:00:00 2001 From: Vinicius Deolindo Date: Tue, 30 Jun 2026 13:43:42 -0300 Subject: [PATCH] lumen: add `fzf` and `mdcat` to `PATH` these are optional dependencies that can be used by the app --- pkgs/by-name/lu/lumen/package.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/lu/lumen/package.nix b/pkgs/by-name/lu/lumen/package.nix index 16f2556b2a10..af26fb66b206 100644 --- a/pkgs/by-name/lu/lumen/package.nix +++ b/pkgs/by-name/lu/lumen/package.nix @@ -2,8 +2,11 @@ lib, rustPlatform, fetchFromGitHub, + makeWrapper, pkg-config, openssl, + fzf, + mdcat, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -26,10 +29,22 @@ rustPlatform.buildRustPackage (finalAttrs: { # use the non-vendored openssl env.OPENSSL_NO_VENDOR = 1; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + makeWrapper + pkg-config + ]; buildInputs = [ openssl ]; + postFixup = '' + wrapProgram $out/bin/lumen --prefix PATH : ${ + lib.makeBinPath [ + fzf + mdcat + ] + } + ''; + # tests that require a git repository to run checkFlags = [ "--skip=vcs::git::tests::test_get_merge_base_returns_ancestor"