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