2023-06-23 23:10:23 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-09-22 00:11:09 +02:00
|
|
|
, libdrm
|
2023-06-23 23:10:23 +02:00
|
|
|
, ffmpeg
|
2023-09-22 00:11:09 +02:00
|
|
|
, wayland
|
2023-06-23 23:10:23 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wl-screenrec";
|
2023-09-22 00:11:09 +02:00
|
|
|
version = "unstable-2023-09-17";
|
2023-06-23 23:10:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "russelltg";
|
|
|
|
repo = pname;
|
2023-09-22 00:11:09 +02:00
|
|
|
rev = "a36c5923009b44f2131196d8a3a234948f8e0102";
|
|
|
|
hash = "sha256-V29eB9vozVKIBq8dO7zgA4nirsh1eDBjJN+rwVkeDLE=";
|
2023-06-23 23:10:23 +02:00
|
|
|
};
|
|
|
|
|
2023-09-22 00:11:09 +02:00
|
|
|
cargoHash = "sha256-uUfEweLWn/NdqgY8O7Ld+YnGPKQV1tpJi/Gd4MZB4xI=";
|
2023-06-23 23:10:23 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland
|
2023-09-22 00:11:09 +02:00
|
|
|
libdrm
|
2023-06-23 23:10:23 +02:00
|
|
|
ffmpeg
|
|
|
|
];
|
|
|
|
|
2023-09-22 00:11:09 +02:00
|
|
|
doCheck = false; # tests use host compositor, etc
|
|
|
|
|
2023-06-23 23:10:23 +02: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-08-25 15:38:13 +02:00
|
|
|
mainProgram = "wl-screenrec";
|
2023-06-23 23:10:23 +02:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|