2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, meson, ninja, pkg-config, scdoc
|
2019-05-22 11:03:39 +00:00
|
|
|
, wayland, wayland-protocols, cairo, gdk-pixbuf
|
2021-06-15 06:20:50 +00:00
|
|
|
, wayland-scanner
|
2019-05-03 20:26:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "swaybg";
|
2021-07-19 12:37:43 +00:00
|
|
|
version = "1.1";
|
2019-05-03 20:26:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "swaybg";
|
2021-07-19 12:37:43 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "17508q9wsw6c1lsxlcbxj74z2naqhwi5c7lkbq24m4lk8qmy0576";
|
2019-05-03 20:26:20 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 20:20:15 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-06-15 06:20:50 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
2019-05-22 11:03:39 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols cairo gdk-pixbuf ];
|
2019-05-03 20:26:20 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-03 20:26:20 +00:00
|
|
|
description = "Wallpaper tool for Wayland compositors";
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|