40 lines
778 B
Nix
40 lines
778 B
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, cmake
|
||
|
, pkg-config
|
||
|
, pugixml
|
||
|
,
|
||
|
}:
|
||
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
pname = "hyprwayland-scanner";
|
||
|
version = "0.3.4";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "hyprwm";
|
||
|
repo = "hyprwayland-scanner";
|
||
|
rev = "v${finalAttrs.version}";
|
||
|
hash = "sha256-D0pg+ZRwrt4lavZ97Ca8clsgbPA3duLj8iEM7riaIFY=";
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
})
|