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

64 lines
996 B
Nix
Raw Permalink Normal View History

2024-12-14 22:10:23 -06:00
{
lib,
stdenv,
2024-12-14 22:10:23 -06:00
fetchFromGitHub,
nix-update-script,
2024-12-14 22:10:23 -06:00
cmake,
pkg-config,
cairo,
file,
hyprutils,
libjpeg,
libjxl,
libspng,
2024-12-14 22:10:23 -06:00
libwebp,
pixman,
}:
stdenv.mkDerivation (finalAttrs: {
2024-12-14 22:10:23 -06:00
pname = "hyprgraphics";
2025-07-18 05:51:12 +00:00
version = "0.1.5";
2024-12-14 22:10:23 -06:00
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprgraphics";
tag = "v${finalAttrs.version}";
2025-07-18 05:51:12 +00:00
hash = "sha256-gbh1HL98Fdqu0jJIWN4OJQN7Kkth7+rbkFpSZLm/62A=";
2024-12-14 22:10:23 -06:00
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
cairo
file
hyprutils
libjpeg
libjxl
libspng
2024-12-14 22:10:23 -06:00
libwebp
pixman
];
outputs = [
"out"
"dev"
];
doCheck = true;
passthru = {
updateScript = nix-update-script { };
};
2024-12-14 22:10:23 -06:00
meta = {
homepage = "https://github.com/hyprwm/hyprgraphics";
description = "Cpp graphics library for Hypr* ecosystem";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux ++ lib.platforms.freebsd;
teams = [ lib.teams.hyprland ];
2024-12-14 22:10:23 -06:00
};
})