mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
9237762267
Supersedes https://github.com/NixOS/nixpkgs/pull/357623
Note: `wpaperd --version` will show 1.0.1 since it wasn't changed for
this release. See 459c4e9c8b
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub, pkg-config, libxkbcommon, wayland, libGL }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wpaperd";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danyspin97";
|
|
repo = "wpaperd";
|
|
rev = version;
|
|
hash = "sha256-eCD+eNdiVWLEmpkt0EaID534t6eE2OIVCgWMie5kbFE=";
|
|
};
|
|
|
|
cargoHash = "sha256-BlndjwvVYUaotCMKkArZ4EtFTLVcVhPDiY2QBnc5NUo=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
wayland
|
|
libGL
|
|
libxkbcommon
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Minimal wallpaper daemon for Wayland";
|
|
longDescription = ''
|
|
It allows the user to choose a different image for each output (aka for each monitor)
|
|
just as swaybg. Moreover, a directory can be chosen and wpaperd will randomly choose
|
|
an image from it. Optionally, the user can set a duration, after which the image
|
|
displayed will be changed with another random one.
|
|
'';
|
|
homepage = "https://github.com/danyspin97/wpaperd";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ DPDmancul fsnkty ];
|
|
mainProgram = "wpaperd";
|
|
};
|
|
}
|