depot/third_party/nixpkgs/pkgs/tools/wayland/wpaperd/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
1.3 KiB
Nix

{ lib, rustPlatform, fetchFromGitHub, pkg-config, libxkbcommon }:
rustPlatform.buildRustPackage rec {
pname = "wpaperd";
version = "0.3.0";
src = fetchFromGitHub {
owner = "danyspin97";
repo = pname;
rev = version;
sha256 = "cgjHCSBrkX3aoz42qBS/1JUGhc7sZKarKByntp7ubaQ=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libxkbcommon
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"smithay-client-toolkit-0.16.0" = "iPDL7pxTez4EnIBaUH25lLSWpu3RRL2QBF9pfdTDsP8=";
};
};
postPatch = ''
rm Cargo.lock
ln -s ${./Cargo.lock} Cargo.lock
'';
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 ];
mainProgram = "wpaperd";
};
}