diff options
| author | Fuwn <[email protected]> | 2024-06-26 08:29:49 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-26 08:29:49 -0700 |
| commit | 804df1d72b97aa638d84b663ea00ff26bab5d969 (patch) | |
| tree | 1eb68c65dac7e9ce3787b562f52879f8f917041a /cli/meta/smolnet/bollux | |
| parent | hi (diff) | |
| download | nixos-config-804df1d72b97aa638d84b663ea00ff26bab5d969.tar.xz nixos-config-804df1d72b97aa638d84b663ea00ff26bab5d969.zip | |
flake
Diffstat (limited to 'cli/meta/smolnet/bollux')
| -rw-r--r-- | cli/meta/smolnet/bollux/default.nix | 67 | ||||
| -rw-r--r-- | cli/meta/smolnet/bollux/fix_lesskey_nag.patch | 13 |
2 files changed, 0 insertions, 80 deletions
diff --git a/cli/meta/smolnet/bollux/default.nix b/cli/meta/smolnet/bollux/default.nix deleted file mode 100644 index 2079052..0000000 --- a/cli/meta/smolnet/bollux/default.nix +++ /dev/null @@ -1,67 +0,0 @@ -{ pkgs, lib, ... }: -let - bollux = - pkgs.stdenvNoCC.mkDerivation rec { - pname = "bollux"; - version = "0.4.1"; - - nativeBuildInputs = [ - pkgs.makeWrapper - ]; - - buildInputs = [ - pkgs.bashInteractive - ]; - - dontBuild = true; - - makeFlags = [ - "PREFIX=$(out)" - ]; - - src = pkgs.fetchFromGitea { - domain = "tildegit.org"; - owner = "acdw"; - repo = "bollux"; - rev = "f472e60f1164f0dc025d06db2a13ff4e8ebee1a2"; - hash = "sha256-mo2qWCPfW+dUaYcJLsos/vR5nJ8n1eABy8Zy8OZsfVg="; - }; - - runtimeDependencies = [ - pkgs.bashInteractive - pkgs.iconv - pkgs.openssl - pkgs.less - pkgs.coreutils - ]; - - patches = [ - # https://tildegit.org/acdw/bollux/issues/13#issuecomment-9786 - ./fix_lesskey_nag.patch - ]; - - postInstall = '' - wrapProgram $out/bin/bollux --prefix PATH : ${lib.makeBinPath runtimeDependencies} - ''; - - meta = with lib; { - description = "a Gemini browser in like, idk, 96% pure Bash"; - homepage = "https://tildegit.org/acdw/bollux"; - license = licenses.mit; - platforms = platforms.all; - mainProgram = "bollux"; - }; - }; -in -{ - home.packages = [ - # I'll update this later and move the above derivation to its own package - # once I push my entire NixOS system configuration. - # (pkgs.callPackage /path/to/pkgs/bollux.nix { - # src = bollux; - # }) - bollux - ]; - - xdg.configFile."bollux/bollux.conf".text = ''''; -} diff --git a/cli/meta/smolnet/bollux/fix_lesskey_nag.patch b/cli/meta/smolnet/bollux/fix_lesskey_nag.patch deleted file mode 100644 index 329b886..0000000 --- a/cli/meta/smolnet/bollux/fix_lesskey_nag.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git i/bollux w/bollux -index 267418e..090217e 100755 ---- i/bollux -+++ w/bollux -@@ -1130,7 +1130,7 @@ display() { # display METADATA [TITLE] - # text, and pre-formatted text shouldn't wrap. - less_cmd+=(-S) - # Load the keybindings (see `lesskey'). -- mklesskey && less_cmd+=(-k "$BOLLUX_LESSKEY") -+ mklesskey && less_cmd+=(--lesskey-src="$BOLLUX_LESSKEY") - local helpline="${KEY_OPEN}:open, " - helpline+="${KEY_GOTO}/" - helpline+="${KEY_GOTO_FROM}:goto, " |