]> xn--ix-yja.es Git - alex.git/commitdiff
Add newsboat
authoralex <alex@pdp7.net>
Sun, 30 Jun 2024 18:23:29 +0000 (20:23 +0200)
committeralexpdp7 <alex@corcoles.net>
Sun, 30 Jun 2024 18:24:22 +0000 (18:24 +0000)
scripts/p7s/newsboat.py [new file with mode: 0644]
scripts/pyproject.toml

diff --git a/scripts/p7s/newsboat.py b/scripts/p7s/newsboat.py
new file mode 100644 (file)
index 0000000..ac88ae1
--- /dev/null
@@ -0,0 +1,8 @@
+import os
+import sys
+
+
+def main():
+    env = os.environ.copy()
+    env["LOCALE_ARCHIVE"] = "/usr/lib/locale/locale-archive"
+    os.execve("/home/alex/.local/bin/nix-portable", ("nix-portable", "nix", "shell", "nixpkgs#newsboat", "-c", "newsboat"), env)
index c2a674c7b058db52138953c7c518242ca3df38f3..db3c56a00c3d5129e67587794436ebce57aa6e7a 100644 (file)
@@ -17,6 +17,7 @@ build-backend = "poetry.core.masonry.api"
 
 [tool.poetry.scripts]
 ruscreen = 'p7s.ruscreen:main'
+newsboat = 'p7s.newsboat:main'
 mbsync_config = 'p7s.mail:generate_config'
 db-create = 'p7s.distrobox:create'
 db-enter = 'p7s.distrobox:enter'