mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
wallust: refactor derivation
1. Remove use of `rec` keyword; 2. Remove parameterization of `pname`; 3. Remove `with lib;` from meta attribute.
This commit is contained in:
parent
8cfdb77c1f
commit
8ddb299845
@ -3,14 +3,17 @@
|
|||||||
, rustPlatform
|
, rustPlatform
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
let
|
||||||
pname = "wallust";
|
|
||||||
version = "2.7.1";
|
version = "2.7.1";
|
||||||
|
in
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = "wallust";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "codeberg.org";
|
domain = "codeberg.org";
|
||||||
owner = "explosion-mental";
|
owner = "explosion-mental";
|
||||||
repo = pname;
|
repo = "wallust";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-WhL2HWM1onRrCqWJPLnAVMd/f/xfLrK3mU8jFSLFjAM=";
|
hash = "sha256-WhL2HWM1onRrCqWJPLnAVMd/f/xfLrK3mU8jFSLFjAM=";
|
||||||
};
|
};
|
||||||
@ -19,13 +22,13 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "A better pywal";
|
description = "A better pywal";
|
||||||
homepage = "https://codeberg.org/explosion-mental/wallust";
|
homepage = "https://codeberg.org/explosion-mental/wallust";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ onemoresuza iynaix ];
|
maintainers = with lib.maintainers; [ onemoresuza iynaix ];
|
||||||
downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}";
|
downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}";
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
mainProgram = "wallust";
|
mainProgram = "wallust";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user