nixpkgs/pkgs/by-name/sw/swaybg/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, meson, ninja, pkg-config, scdoc
2019-05-22 12:03:39 +01:00
, wayland, wayland-protocols, cairo, gdk-pixbuf
, wayland-scanner
2019-05-03 21:26:20 +01:00
}:
stdenv.mkDerivation rec {
pname = "swaybg";
2024-04-28 16:01:25 +01:00
version = "1.2.1";
2019-05-03 21:26:20 +01:00
src = fetchFromGitHub {
owner = "swaywm";
repo = "swaybg";
2021-07-19 13:37:43 +01:00
rev = "v${version}";
2024-04-28 16:01:25 +01:00
hash = "sha256-IJcPSBJErf8Dy9YhYAc9eg/llgaaLZCQSB0Brof+kpg=";
2019-05-03 21:26:20 +01:00
};
strictDeps = true;
2021-08-18 21:20:15 +01:00
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
2019-05-22 12:03:39 +01:00
buildInputs = [ wayland wayland-protocols cairo gdk-pixbuf ];
2019-05-03 21:26:20 +01:00
mesonFlags = [
"-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
];
meta = with lib; {
2019-05-03 21:26:20 +01:00
description = "Wallpaper tool for Wayland compositors";
inherit (src.meta) homepage;
2019-05-03 21:26:20 +01: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;
mainProgram = "swaybg";
2019-05-03 21:26:20 +01:00
maintainers = with maintainers; [ primeos ];
platforms = platforms.linux;
2019-05-03 21:26:20 +01:00
};
}