2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-09-19 14:19:46 +00:00
|
|
|
, fetchpatch
|
2022-07-14 12:49:19 +00:00
|
|
|
, cmake
|
2024-06-20 14:57:18 +00:00
|
|
|
, cairo
|
|
|
|
, expat
|
2023-08-22 20:05:09 +00:00
|
|
|
, file
|
2024-06-20 14:57:18 +00:00
|
|
|
, fribidi
|
2024-01-25 14:12:00 +00:00
|
|
|
, hyprlang
|
2024-06-20 14:57:18 +00:00
|
|
|
, libdatrie
|
2023-11-16 04:20:00 +00:00
|
|
|
, libGL
|
2022-07-14 12:49:19 +00:00
|
|
|
, libjpeg
|
2024-06-20 14:57:18 +00:00
|
|
|
, libselinux
|
|
|
|
, libsepol
|
|
|
|
, libthai
|
2024-01-25 14:12:00 +00:00
|
|
|
, libwebp
|
2024-06-20 14:57:18 +00:00
|
|
|
, libXdmcp
|
2022-07-14 12:49:19 +00:00
|
|
|
, pango
|
2024-06-20 14:57:18 +00:00
|
|
|
, pcre
|
|
|
|
, pcre2
|
2022-10-21 18:38:19 +00:00
|
|
|
, pkg-config
|
2024-06-20 14:57:18 +00:00
|
|
|
, util-linux
|
2022-07-14 12:49:19 +00:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, wayland-scanner
|
2024-09-19 14:19:46 +00:00
|
|
|
, hyprwayland-scanner
|
|
|
|
, hyprutils
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "hyprpaper";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.7.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyprwm";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "hyprpaper";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-HIK7XJWQCM0BAnwW5uC7P0e7DAkVTy5jlxQ0NwoSy4M=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [
|
|
|
|
# CMakeLists: look for wayland.xml protocol in wayland-scanner pkgdata
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hyprwm/hyprpaper/commit/6c6e54faa84d2de94d2321eda43a8a669ebf3312.patch";
|
|
|
|
hash = "sha256-Ns7HlUPVgBDIocZRGR6kIW58Mt92kJPQRMSKTvp6Vik=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2024-09-19 14:19:46 +00:00
|
|
|
hyprwayland-scanner
|
2022-07-14 12:49:19 +00:00
|
|
|
wayland-scanner
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-06-20 14:57:18 +00:00
|
|
|
cairo
|
|
|
|
expat
|
2023-08-22 20:05:09 +00:00
|
|
|
file
|
2024-06-20 14:57:18 +00:00
|
|
|
fribidi
|
2024-01-25 14:12:00 +00:00
|
|
|
hyprlang
|
2024-06-20 14:57:18 +00:00
|
|
|
libdatrie
|
2023-11-16 04:20:00 +00:00
|
|
|
libGL
|
2022-07-14 12:49:19 +00:00
|
|
|
libjpeg
|
2024-06-20 14:57:18 +00:00
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libthai
|
2024-01-25 14:12:00 +00:00
|
|
|
libwebp
|
2024-06-20 14:57:18 +00:00
|
|
|
libXdmcp
|
2022-07-14 12:49:19 +00:00
|
|
|
pango
|
2024-06-20 14:57:18 +00:00
|
|
|
pcre
|
|
|
|
pcre2
|
|
|
|
util-linux
|
2022-07-14 12:49:19 +00:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
2024-09-19 14:19:46 +00:00
|
|
|
hyprutils
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace src/main.cpp \
|
2022-10-21 18:38:19 +00:00
|
|
|
--replace GIT_COMMIT_HASH '"${finalAttrs.src.rev}"'
|
2022-07-14 12:49:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
inherit (finalAttrs.src.meta) homepage;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Blazing fast wayland wallpaper utility";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.bsd3;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with maintainers; [ wozeparrot fufexan ];
|
2022-10-21 18:38:19 +00:00
|
|
|
inherit (wayland.meta) platforms;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "hyprpaper";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
})
|