From 149ab539b729390c3db5b1c9a4ddfde0e6c25b2a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 22 Jun 2024 15:54:55 -0700 Subject: . --- applications/cli/gemini/bollux/default.nix | 33 ++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'applications/cli/gemini/bollux/default.nix') diff --git a/applications/cli/gemini/bollux/default.nix b/applications/cli/gemini/bollux/default.nix index 175fe80..c869c48 100644 --- a/applications/cli/gemini/bollux/default.nix +++ b/applications/cli/gemini/bollux/default.nix @@ -3,23 +3,42 @@ let bollux = pkgs.stdenvNoCC.mkDerivation rec { pname = "bollux"; - version = "f472e60f1164f0dc025d06db2a13ff4e8ebee1a2"; + 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 = version; + rev = "f472e60f1164f0dc025d06db2a13ff4e8ebee1a2"; hash = "sha256-mo2qWCPfW+dUaYcJLsos/vR5nJ8n1eABy8Zy8OZsfVg="; }; - installPhase = '' - mkdir -p $out/bin - make install PREFIX=$out + + 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.unix; + platforms = platforms.all; mainProgram = "bollux"; }; }; @@ -33,4 +52,6 @@ in # }) bollux ]; + + xdg.configFile."bollux/bollux.conf".text = ''''; } -- cgit v1.2.3