mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
41 lines
889 B
Nix
41 lines
889 B
Nix
{ 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;
|
|
mainProgram = "wl-screenrec";
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|