2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, cairo
|
|
|
|
, hyprlang
|
|
|
|
, librsvg
|
|
|
|
, libzip
|
|
|
|
, tomlplusplus
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hyprcursor";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.1.9";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "hyprcursor";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-FIN1wMoyePBTtibCbaeJaoKNLuAYIGwLCWAYC1DJanw=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# fix icon directories system search path
|
|
|
|
"${finalAttrs.src}/nix/dirs.patch"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
hyprlang
|
|
|
|
librsvg
|
|
|
|
libzip
|
|
|
|
tomlplusplus
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
"lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/hyprwm/hyprcursor";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Hyprland cursor format, library and utilities";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/hyprwm/hyprcursor/releases/tag/v${finalAttrs.version}";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ iynaix ];
|
|
|
|
mainProgram = "hyprcursor-util";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
})
|