lesspipe: allow configuring package

This commit is contained in:
Kiara Grouwstra 2024-12-27 18:39:49 +01:00 committed by Robert Helgesson
parent 35b98d20ca
commit 19398e505a
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
4 changed files with 21 additions and 3 deletions

View file

@ -0,0 +1 @@
{ lesspipe = ./lesspipe.nix; }

View file

@ -0,0 +1,10 @@
{
programs.lesspipe.enable = true;
test.stubs.lesspipe = { };
nmt.script = ''
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
'export LESSOPEN="|@lesspipe@/bin/lesspipe.sh %s"'
'';
}