mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, cairo
|
|
, hyprlang
|
|
, librsvg
|
|
, libzip
|
|
, tomlplusplus
|
|
, nix-update-script
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hyprcursor";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hyprwm";
|
|
repo = "hyprcursor";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-FIN1wMoyePBTtibCbaeJaoKNLuAYIGwLCWAYC1DJanw=";
|
|
};
|
|
|
|
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";
|
|
description = "Hyprland cursor format, library and utilities";
|
|
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;
|
|
};
|
|
})
|