pager: expose utilities

This commit is contained in:
tv 2023-02-07 14:34:51 +01:00
parent 1ce5e46e7b
commit e26b6d1f15

View file

@ -1,14 +1,17 @@
{ pkgs }: { pkgs }:
pkgs.writeDashBin "pager" '' pkgs.symlinkJoin {
name = "pager-wrapper";
paths = [
(pkgs.writeDashBin "pager" ''
# usage: pager {view,shift,shiftview} # usage: pager {view,shift,shiftview}
# #
# Environment variables # Environment variables
# #
# PAGER_NAME (default: Pager) # PAGER_NAME (default: Pager)
# The environment variables specifies the application name under which # The environment variables specifies the application name under
# resources are to be obtained. PAGER_NAME should not contain “.” or “*” # which resources are to be obtained. PAGER_NAME should not contain
# characters. # “.” or “*” characters.
# #
set -efu set -efu
@ -33,4 +36,7 @@ pkgs.writeDashBin "pager" ''
-xrm 'Pager*background: #050505' \ -xrm 'Pager*background: #050505' \
-xrm 'Pager*foreground: #d0d7d0' \ -xrm 'Pager*foreground: #d0d7d0' \
-e ${pkgs.haskellPackages.pager}/bin/pager "$@" -e ${pkgs.haskellPackages.pager}/bin/pager "$@"
'' '')
pkgs.haskellPackages.pager
];
}