lumen: add fzf and mdcat to PATH
these are optional dependencies that can be used by the app
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user