lumen: add fzf and mdcat to PATH

these are optional dependencies that can be used by the app
This commit is contained in:
Vinicius Deolindo
2026-06-30 13:48:29 -03:00
parent 5ba6c30e86
commit fd68039fdc
+16 -1
View File
@@ -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"