depot/third_party/nixpkgs/pkgs/tools/wayland/wl-screenrec/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

44 lines
962 B
Nix

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