2024-06-05 15:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, pugixml
|
2024-06-20 14:57:18 +00:00
|
|
|
, nix-update-script
|
2024-06-05 15:53:02 +00:00
|
|
|
,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hyprwayland-scanner";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.3.10";
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "hyprwayland-scanner";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-YxmfxHfWed1fosaa7fC1u7XoKp1anEZU+7Lh/ojRKoM=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pugixml
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/hyprwm/hyprwayland-scanner";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Hyprland version of wayland-scanner in and for C++";
|
|
|
|
changelog = "https://github.com/hyprwm/hyprwayland-scanner/releases/tag/${finalAttrs.version}";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fufexan ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "hyprwayland-scanner";
|
2024-06-20 14:57:18 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
})
|