mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
47 lines
975 B
Nix
47 lines
975 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, pugixml
|
|
, nix-update-script
|
|
,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hyprwayland-scanner";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hyprwm";
|
|
repo = "hyprwayland-scanner";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-JPdL+Qul+jEueAn8CARfcWP83eJgwkhMejQYfDvrgvU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
pugixml
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/hyprwm/hyprwayland-scanner";
|
|
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
|
|
johnrtitor
|
|
];
|
|
mainProgram = "hyprwayland-scanner";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|