1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-18 15:14:49 -04:00
nixpkgs/pkgs/tools/wayland/wl-screenrec/default.nix
Emily 61922738bb treewide: optimistically unpin FFmpeg 7 dependencies
Per the adjusted FFmpeg pinning advice, packages that work on the
default version should use the unversioned variants to ease the
migration to future versions and reduce the number of packages that
end up referencing old versions.

I have left HandBrake pinned as it builds a custom patched FFmpeg.
2024-09-07 20:31:41 +01:00

45 lines
968 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libdrm
, ffmpeg
, 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
];
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 ];
};
}