From 527ec1c21253e501ab2124d05d2a4e2dd405a45b Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 29 Apr 2024 17:50:44 +0200 Subject: pager: emigrate --- krebs/5pkgs/simple/pager.nix | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 krebs/5pkgs/simple/pager.nix (limited to 'krebs/5pkgs/simple') diff --git a/krebs/5pkgs/simple/pager.nix b/krebs/5pkgs/simple/pager.nix deleted file mode 100644 index adc2cc67b..000000000 --- a/krebs/5pkgs/simple/pager.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ pkgs }: - -pkgs.symlinkJoin { - name = "pager-wrapper"; - paths = [ - (pkgs.writeDashBin "pager" '' - # usage: pager {view,shift,shiftview} - # - # Environment variables - # - # PAGER_NAME (default: Pager) - # The environment variables specifies the application name under - # which resources are to be obtained. PAGER_NAME should not contain - # “.” or “*” characters. - # - set -efu - - pidfile=$XDG_RUNTIME_DIR/pager.lock - name=''${PAGER_NAME-Pager} - - if test -e "$pidfile" && - ${pkgs.procps}/bin/pgrep --pidfile="$pidfile" >/dev/null - then - ${pkgs.procps}/bin/pkill --pidfile="$pidfile" - ${pkgs.coreutils}/bin/rm "$pidfile" - exit - fi - - echo $$ > "$pidfile" - - exec ${pkgs.xterm}/bin/xterm \ - -name "$name" \ - -ti vt340 \ - -xrm '*geometry: 32x10' \ - -xrm '*internalBorder: 2' \ - -e ${pkgs.haskellPackages.desktop-pager}/bin/pager "$@" - '') - pkgs.haskellPackages.pager - ]; -} -- cgit v1.2.3