mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 21:48:22 +00:00
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:
parent
dfcffbd74f
commit
3565949c0b
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user