nixpkgs/pkgs/by-name/hy/hyprwayland-scanner/package.nix

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

40 lines
778 B
Nix
Raw Normal View History

2024-05-04 17:16:23 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, pugixml
,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hyprwayland-scanner";
2024-05-21 18:26:08 +00:00
version = "0.3.4";
2024-05-04 17:16:23 +00:00
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprwayland-scanner";
rev = "v${finalAttrs.version}";
2024-05-21 18:26:08 +00:00
hash = "sha256-D0pg+ZRwrt4lavZ97Ca8clsgbPA3duLj8iEM7riaIFY=";
2024-05-04 17:16:23 +00:00
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
pugixml
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/hyprwm/hyprwayland-scanner";
description = "A Hyprland version of wayland-scanner in and for C++";
license = licenses.bsd3;
maintainers = with maintainers; [ fufexan ];
mainProgram = "hyprwayland-scanner";
platforms = platforms.linux;
};
})