about summary refs log tree commit diff
path: root/pkgs/tools/wayland/wl-screenrec/default.nix
blob: 8f09b806f6af87a964b36b917335a28c50c15740 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, wayland
, ffmpeg
}:

rustPlatform.buildRustPackage rec {
  pname = "wl-screenrec";
  version = "unstable-2023-05-31";

  src = fetchFromGitHub {
    owner = "russelltg";
    repo = pname;
    rev = "fc918f7898900c1882c6f64c96ed2de8cb9a6300";
    hash = "sha256-P/JELiw0qGcwLFgNPccN/uetNy8CNCJdlCLhgq0h4sc=";
  };

  cargoHash = "sha256-r9zmAiLiAntHcb5W/WKmKbVP9c9+15ElIWtHkks0wig=";

  nativeBuildInputs = [
    pkg-config
    rustPlatform.bindgenHook
  ];

  buildInputs = [
    wayland
    ffmpeg
  ];

  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;
    maintainers = with maintainers; [ colemickens ];
  };
}