summary refs log blame commit diff
path: root/pkgs/tools/wayland/wl-screenrec/default.nix
blob: c96a5834fa25974b8e00f70783cb519b88e21cc9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                 
        
        
         



                                   
                                  



                         

                                                                 

    
                                                                    







                            
          


          

                                                   




                                                                                           
                                 


                                                    
{ 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 ];
  };
}