1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-18 17:02:27 -04:00
nixpkgs/pkgs/tools/wayland/wl-screenrec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
972 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libdrm
, ffmpeg_7
, wayland
}:
rustPlatform.buildRustPackage rec {
pname = "wl-screenrec";
version = "0.1.4-unstable-2024-07-28";
src = fetchFromGitHub {
owner = "russelltg";
repo = pname;
rev = "b817accf1d4f2373cb6f466f760de35e5b8626bd";
hash = "sha256-07O2YM9dOHWzriM2+uiBWjEt2hKAuXtRtnKBuzb02Us=";
};
cargoHash = "sha256-AYirjrnk8SGTXk5IjzCep2AQJYPbgHAOOf47MUDYj4k=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
wayland
libdrm
ffmpeg_7
];
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;
2023-08-25 09:38:13 -04:00
mainProgram = "wl-screenrec";
maintainers = with maintainers; [ colemickens ];
};
}