nixpkgs/pkgs/by-name/hy/hyprpaper/package.nix

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

99 lines
1.7 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
2024-09-01 16:04:00 +00:00
, fetchpatch
, cmake
2024-05-05 12:05:25 +00:00
, cairo
, expat
2023-08-11 13:15:08 +00:00
, file
2024-05-05 12:05:25 +00:00
, fribidi
2024-01-02 22:13:49 +00:00
, hyprlang
2024-05-05 12:05:25 +00:00
, libdatrie
, libGL
, libjpeg
2024-05-05 12:05:25 +00:00
, libselinux
, libsepol
, libthai
2024-01-02 22:13:49 +00:00
, libwebp
2024-05-05 12:05:25 +00:00
, libXdmcp
, pango
2024-05-05 12:05:25 +00:00
, pcre
, pcre2
, pkg-config
2024-05-05 12:05:25 +00:00
, util-linux
, wayland
, wayland-protocols
2024-09-01 16:04:00 +00:00
, wayland-scanner
2024-08-16 20:46:08 +00:00
, hyprwayland-scanner
, hyprutils
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hyprpaper";
2024-08-16 20:46:08 +00:00
version = "0.7.1";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprpaper";
rev = "v${finalAttrs.version}";
2024-08-16 20:46:08 +00:00
hash = "sha256-HIK7XJWQCM0BAnwW5uC7P0e7DAkVTy5jlxQ0NwoSy4M=";
};
2024-09-01 16:04:00 +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=";
})
];
nativeBuildInputs = [
cmake
pkg-config
2024-08-16 20:46:08 +00:00
hyprwayland-scanner
2024-09-01 16:04:00 +00:00
wayland-scanner
];
buildInputs = [
2024-05-05 12:05:25 +00:00
cairo
expat
2023-08-11 13:15:08 +00:00
file
2024-05-05 12:05:25 +00:00
fribidi
2024-01-02 22:13:49 +00:00
hyprlang
2024-05-05 12:05:25 +00:00
libdatrie
libGL
libjpeg
2024-05-05 12:05:25 +00:00
libselinux
libsepol
libthai
2024-01-02 22:13:49 +00:00
libwebp
2024-05-05 12:05:25 +00:00
libXdmcp
pango
2024-05-05 12:05:25 +00:00
pcre
pcre2
util-linux
wayland
wayland-protocols
2024-08-16 20:46:08 +00:00
hyprutils
];
prePatch = ''
substituteInPlace src/main.cpp \
--replace GIT_COMMIT_HASH '"${finalAttrs.src.rev}"'
'';
meta = with lib; {
inherit (finalAttrs.src.meta) homepage;
description = "Blazing fast wayland wallpaper utility";
license = licenses.bsd3;
2024-10-24 04:40:29 +00:00
maintainers = with maintainers; [
fufexan
khaneliman
wozeparrot
];
inherit (wayland.meta) platforms;
2023-05-08 08:35:04 +00:00
broken = stdenv.hostPlatform.isDarwin;
2023-08-04 22:11:04 +00:00
mainProgram = "hyprpaper";
};
})