summaryrefslogtreecommitdiff
path: root/cli/meta/smolnet/bollux/default.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-25 18:36:11 -0700
committerFuwn <[email protected]>2024-06-25 18:36:11 -0700
commit6b8636e2d979532d98b10a4a8393165ba2d5864c (patch)
tree1f18f8256a77922880b67db682495d9cb24fe2cf /cli/meta/smolnet/bollux/default.nix
parent. (diff)
downloadnixos-config-6b8636e2d979532d98b10a4a8393165ba2d5864c.tar.xz
nixos-config-6b8636e2d979532d98b10a4a8393165ba2d5864c.zip
hi
Diffstat (limited to 'cli/meta/smolnet/bollux/default.nix')
-rw-r--r--cli/meta/smolnet/bollux/default.nix67
1 files changed, 67 insertions, 0 deletions
diff --git a/cli/meta/smolnet/bollux/default.nix b/cli/meta/smolnet/bollux/default.nix
new file mode 100644
index 0000000..2079052
--- /dev/null
+++ b/cli/meta/smolnet/bollux/default.nix
@@ -0,0 +1,67 @@
+{ 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 = '''';
+}