about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-03-31 23:49:18 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-04-02 19:05:34 -0300
commit078f88f29d1feb58831602a183a76aadf495daf7 (patch)
treedc20631b3fc6fed7ca65646296cccae44329a7b1 /pkgs/misc
parent1a250d7b10feba79bbd35e14b0f639dc580123e3 (diff)
base16-shell-preview: refactor
Also, take maintenace to myself.
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/base16-shell-preview/default.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/misc/base16-shell-preview/default.nix b/pkgs/misc/base16-shell-preview/default.nix
index c5b806d65e5a1..feb9df74dbb87 100644
--- a/pkgs/misc/base16-shell-preview/default.nix
+++ b/pkgs/misc/base16-shell-preview/default.nix
@@ -1,23 +1,28 @@
-{ lib, python3Packages }:
+{ lib
+, python3Packages
+}:
 
-python3Packages.buildPythonApplication rec {
+let
   pname = "base16-shell-preview";
   version = "1.0.0";
+in
+python3Packages.buildPythonApplication {
+  inherit pname version;
 
   src = python3Packages.fetchPypi {
     inherit version;
-    pname = "base16_shell_preview";
-    sha256 = "098f3z81g3acgcrisipz0nh17n9kx7ld6h8dg26qz3nx31pngsxd";
+    pname = "${lib.replaceStrings ["-"] ["_"] pname}";
+    hash = "sha256-retnbxjdjo+NeA1B0+jpM9kToAX/Rh0ze0yNF9AfDiU=";
   };
 
-  # No tests
-  # If enabled, will attempt to run '__init__.py, and will fail with "/homeless-shelter" as HOME
+  # If enabled, it will attempt to run '__init__.py, failing by trying to write
+  # at "/homeless-shelter" as HOME
   doCheck = false;
 
-  meta = with lib; {
-    description = "Browse and preview Base16 Shell themes in your terminal";
+  meta = {
     homepage = "https://github.com/nvllsvm/base16-shell-preview";
-    license = licenses.mit;
-    maintainers = [ maintainers.rencire ];
+    description = "Browse and preview Base16 Shell themes in your terminal";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ AndersonTorres ];
   };
 }