summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/p7s/newsboat.py8
-rw-r--r--scripts/pyproject.toml1
2 files changed, 9 insertions, 0 deletions
diff --git a/scripts/p7s/newsboat.py b/scripts/p7s/newsboat.py
new file mode 100644
index 00000000..ac88ae1d
--- /dev/null
+++ b/scripts/p7s/newsboat.py
@@ -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)
diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml
index c2a674c7..db3c56a0 100644
--- a/scripts/pyproject.toml
+++ b/scripts/pyproject.toml
@@ -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'