diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-06-24 00:10:23 +0300 |
---|---|---|
committer | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-06-24 00:10:23 +0300 |
commit | ddd94a31036dd31dcb5f6bb509f7dae5f97fdb69 (patch) | |
tree | 06a4cfb5aacff8aeb092c62570a30cdc56e99512 /pkgs/tools/wayland | |
parent | 9a065cedbf399ef36fcb7fb4c4d63e2377f7506a (diff) |
wl-screenrec: init at unstable-2023-05-31
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r-- | pkgs/tools/wayland/wl-screenrec/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/wl-screenrec/default.nix b/pkgs/tools/wayland/wl-screenrec/default.nix new file mode 100644 index 0000000000000..8f09b806f6af8 --- /dev/null +++ b/pkgs/tools/wayland/wl-screenrec/default.nix @@ -0,0 +1,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 ]; + }; +} |