biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / wayland / wl-screenrec / default.nix
blob47fecd9850c813ad3b16db1210cafb859024520f
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , libdrm
6 , ffmpeg
7 , wayland
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "wl-screenrec";
12   version = "0.1.4-unstable-2024-07-28";
14   src = fetchFromGitHub {
15     owner = "russelltg";
16     repo = pname;
17     rev = "b817accf1d4f2373cb6f466f760de35e5b8626bd";
18     hash = "sha256-07O2YM9dOHWzriM2+uiBWjEt2hKAuXtRtnKBuzb02Us=";
19   };
21   cargoHash = "sha256-AYirjrnk8SGTXk5IjzCep2AQJYPbgHAOOf47MUDYj4k=";
23   nativeBuildInputs = [
24     pkg-config
25     rustPlatform.bindgenHook
26   ];
28   buildInputs = [
29     wayland
30     libdrm
31     ffmpeg
32   ];
34   doCheck = false; # tests use host compositor, etc
36   meta = with lib; {
37     description = "High performance wlroots screen recording, featuring hardware encoding";
38     homepage = "https://github.com/russelltg/wl-screenrec";
39     license = licenses.asl20;
40     platforms = platforms.linux;
41     mainProgram = "wl-screenrec";
42     maintainers = with maintainers; [ colemickens ];
43   };