wallust: refactor src fetching

Since the wallust project is hosted on Codeberg, it is
possible to use an specific fetcher, i. e., `fetchFromGitea`.
This commit is contained in:
Gustavo Coutinho de Souza 2023-07-24 19:06:15 -03:00
parent dfcffbd74f
commit 3565949c0b
No known key found for this signature in database
GPG Key ID: 87B914AD813AA7C7

View File

@ -1,16 +1,15 @@
{ lib
, fetchgit
, fetchFromGitea
, rustPlatform
}:
let
repoUrl = "https://codeberg.org/explosion-mental/wallust";
in
rustPlatform.buildRustPackage rec {
pname = "wallust";
version = "2.5.1";
src = fetchgit {
url = "${repoUrl}.git";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "explosion-mental";
repo = pname;
rev = version;
hash = "sha256-v72ddWKK2TMHKeBihYjMoJvKXiPe/yqJtdh8VQzjmVU=";
};
@ -19,10 +18,10 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
description = "A better pywal";
homepage = repoUrl;
homepage = "https://codeberg.org/explosion-mental/wallust";
license = licenses.mit;
maintainers = with maintainers; [ onemoresuza ];
downloadPage = "${repoUrl}/releases/tag/${version}";
downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}";
platforms = platforms.unix;
mainProgram = "wallust";
};