about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGustavo Coutinho de Souza <dev@onemoresuza.mailer.me>2023-10-06 20:39:28 -0300
committerGustavo Coutinho de Souza <dev@onemoresuza.mailer.me>2023-10-06 20:39:28 -0300
commit8ddb29984515e7e65a44ce4e84c58ab643122477 (patch)
treeed2ef7d944fc649c03e07cb7ccdf71cacd562aab
parent8cfdb77c1f6b8680061d2caa0f9e297d767555ea (diff)
wallust: refactor derivation
1. Remove use of `rec` keyword;
2. Remove parameterization of `pname`;
3. Remove `with lib;` from meta attribute.
-rw-r--r--pkgs/applications/misc/wallust/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/applications/misc/wallust/default.nix b/pkgs/applications/misc/wallust/default.nix
index cbbe3408d47ec..4155c912c6385 100644
--- a/pkgs/applications/misc/wallust/default.nix
+++ b/pkgs/applications/misc/wallust/default.nix
@@ -3,14 +3,17 @@
 , rustPlatform
 , nix-update-script
 }:
-rustPlatform.buildRustPackage rec {
-  pname = "wallust";
+let
   version = "2.7.1";
+in
+rustPlatform.buildRustPackage {
+  pname = "wallust";
+  inherit version;
 
   src = fetchFromGitea {
     domain = "codeberg.org";
     owner = "explosion-mental";
-    repo = pname;
+    repo = "wallust";
     rev = version;
     hash = "sha256-WhL2HWM1onRrCqWJPLnAVMd/f/xfLrK3mU8jFSLFjAM=";
   };
@@ -19,13 +22,13 @@ rustPlatform.buildRustPackage rec {
 
   passthru.updateScript = nix-update-script { };
 
-  meta = with lib; {
+  meta = {
     description = "A better pywal";
     homepage = "https://codeberg.org/explosion-mental/wallust";
-    license = licenses.mit;
-    maintainers = with maintainers; [ onemoresuza iynaix ];
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ onemoresuza iynaix ];
     downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}";
-    platforms = platforms.unix;
+    platforms = lib.platforms.unix;
     mainProgram = "wallust";
   };
 }