2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, meson, ninja, pkg-config, scdoc
|
2020-04-24 23:36:52 +00:00
|
|
|
, wayland, wayland-protocols, cairo, gdk-pixbuf
|
2021-06-28 23:13:55 +00:00
|
|
|
, wayland-scanner
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swaybg";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "swaybg";
|
2021-07-21 07:28:18 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-IJcPSBJErf8Dy9YhYAc9eg/llgaaLZCQSB0Brof+kpg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2021-08-22 07:53:02 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols cairo gdk-pixbuf ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Wallpaper tool for Wayland compositors";
|
2023-08-22 20:05:09 +00:00
|
|
|
inherit (src.meta) homepage;
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
A wallpaper utility for Wayland compositors, that is compatible with any
|
|
|
|
Wayland compositor which implements the following Wayland protocols:
|
|
|
|
wlr-layer-shell, xdg-output, and xdg-shell.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "swaybg";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2023-08-22 20:05:09 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|