2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-19 07:50:56 +01:00
|
|
|
, meson, ninja, pkg-config, scdoc
|
2019-05-22 13:03:39 +02:00
|
|
|
, wayland, wayland-protocols, cairo, gdk-pixbuf
|
2019-05-03 22:26:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "swaybg";
|
2019-05-03 22:26:20 +02:00
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "swaybg";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc";
|
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
2019-05-22 13:03:39 +02:00
|
|
|
buildInputs = [ wayland wayland-protocols cairo gdk-pixbuf ];
|
2019-05-03 22:26:20 +02:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-03 22:26:20 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|