2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-10-09 19:29:22 +00:00
|
|
|
, libdrm
|
2023-07-15 17:15:38 +00:00
|
|
|
, ffmpeg
|
2023-10-09 19:29:22 +00:00
|
|
|
, wayland
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wl-screenrec";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-09-17";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "russelltg";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "a36c5923009b44f2131196d8a3a234948f8e0102";
|
|
|
|
hash = "sha256-V29eB9vozVKIBq8dO7zgA4nirsh1eDBjJN+rwVkeDLE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-uUfEweLWn/NdqgY8O7Ld+YnGPKQV1tpJi/Gd4MZB4xI=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland
|
2023-10-09 19:29:22 +00:00
|
|
|
libdrm
|
2023-07-15 17:15:38 +00:00
|
|
|
ffmpeg
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
doCheck = false; # tests use host compositor, etc
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "High performance wlroots screen recording, featuring hardware encoding";
|
|
|
|
homepage = "https://github.com/russelltg/wl-screenrec";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "wl-screenrec";
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|