Merge pull request #245248 from onemoresuza/wallust

wallust: refactor src fetching

authored by Nick Cao and committed by GitHub d4c90d53 75e1bf39

+7 -8
+7 -8
pkgs/applications/misc/wallust/default.nix
··· 1 1 { lib 2 - , fetchgit 2 + , fetchFromGitea 3 3 , rustPlatform 4 4 }: 5 - let 6 - repoUrl = "https://codeberg.org/explosion-mental/wallust"; 7 - in 8 5 rustPlatform.buildRustPackage rec { 9 6 pname = "wallust"; 10 7 version = "2.5.1"; 11 8 12 - src = fetchgit { 13 - url = "${repoUrl}.git"; 9 + src = fetchFromGitea { 10 + domain = "codeberg.org"; 11 + owner = "explosion-mental"; 12 + repo = pname; 14 13 rev = version; 15 14 hash = "sha256-v72ddWKK2TMHKeBihYjMoJvKXiPe/yqJtdh8VQzjmVU="; 16 15 }; ··· 19 18 20 19 meta = with lib; { 21 20 description = "A better pywal"; 22 - homepage = repoUrl; 21 + homepage = "https://codeberg.org/explosion-mental/wallust"; 23 22 license = licenses.mit; 24 23 maintainers = with maintainers; [ onemoresuza ]; 25 - downloadPage = "${repoUrl}/releases/tag/${version}"; 24 + downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}"; 26 25 platforms = platforms.unix; 27 26 mainProgram = "wallust"; 28 27 };