NixOS/home/modules/hyprland/wallust-build.nix

41 lines
1 KiB
Nix
Raw Normal View History

2024-06-12 09:54:11 +07:00
{ lib
, fetchFromGitea
, rustPlatform
, nix-update-script
, imagemagick
, makeWrapper
, pkgs
2024-06-12 09:54:11 +07:00
}:
rustPlatform.buildRustPackage rec {
2024-06-12 09:54:11 +07:00
pname = "wallust";
version = "3.0.0";
2024-06-12 09:54:11 +07:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "explosion-mental";
repo = "wallust";
rev = version;
hash = "sha256-vZTHlonepK1cyxHhGu3bVBuOmExPtRFrAnYp71Jfs8c=";
2024-06-12 09:54:11 +07:00
};
cargoHash = "sha256-o6VRekazqbKTef6SLjHqs9/z/Q70auvunP+yFDkclpg=";
2024-06-12 09:54:11 +07:00
nativeBuildInputs = [ makeWrapper pkgs.rust-bin.stable."1.79.0".default ];
2024-06-12 09:54:11 +07:00
postFixup = ''
wrapProgram $out/bin/wallust \
--prefix PATH : "${lib.makeBinPath [ imagemagick ]}"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "A better pywal";
homepage = "https://codeberg.org/explosion-mental/wallust";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onemoresuza iynaix ];
downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}";
mainProgram = "wallust";
};
}