wallust: refactor derivation

1. Remove use of `rec` keyword;
2. Remove parameterization of `pname`;
3. Remove `with lib;` from meta attribute.

+10 -7
+10 -7
pkgs/applications/misc/wallust/default.nix
··· 3 3 , rustPlatform 4 4 , nix-update-script 5 5 }: 6 - rustPlatform.buildRustPackage rec { 6 + let 7 + version = "2.7.1"; 8 + in 9 + rustPlatform.buildRustPackage { 7 10 pname = "wallust"; 8 - version = "2.7.1"; 11 + inherit version; 9 12 10 13 src = fetchFromGitea { 11 14 domain = "codeberg.org"; 12 15 owner = "explosion-mental"; 13 - repo = pname; 16 + repo = "wallust"; 14 17 rev = version; 15 18 hash = "sha256-WhL2HWM1onRrCqWJPLnAVMd/f/xfLrK3mU8jFSLFjAM="; 16 19 }; ··· 19 22 20 23 passthru.updateScript = nix-update-script { }; 21 24 22 - meta = with lib; { 25 + meta = { 23 26 description = "A better pywal"; 24 27 homepage = "https://codeberg.org/explosion-mental/wallust"; 25 - license = licenses.mit; 26 - maintainers = with maintainers; [ onemoresuza iynaix ]; 28 + license = lib.licenses.mit; 29 + maintainers = with lib.maintainers; [ onemoresuza iynaix ]; 27 30 downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}"; 28 - platforms = platforms.unix; 31 + platforms = lib.platforms.unix; 29 32 mainProgram = "wallust"; 30 33 }; 31 34 }