Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
installShellFiles,
|
|
libdrm,
|
|
ffmpeg_6,
|
|
wayland,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "wl-screenrec";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "russelltg";
|
|
repo = "wl-screenrec";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-sLuhVeyzFp6sFKGK7Y7DPAPk7IdFAqAtjm56zhrX3fA=";
|
|
};
|
|
|
|
cargoHash = "sha256-atfWEAo6tMLEzFtiLlxp8fyVKa1cF/4SZFMYStDYZwU=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
wayland
|
|
libdrm
|
|
ffmpeg_6
|
|
];
|
|
|
|
doCheck = false; # tests use host compositor, etc
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd wl-screenrec \
|
|
--bash <($out/bin/wl-screenrec --generate-completions bash) \
|
|
--fish <($out/bin/wl-screenrec --generate-completions fish) \
|
|
--zsh <($out/bin/wl-screenrec --generate-completions zsh)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "High performance wlroots screen recording, featuring hardware encoding";
|
|
homepage = "https://github.com/russelltg/wl-screenrec";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "wl-screenrec";
|
|
maintainers = with lib.maintainers; [ colemickens ];
|
|
};
|
|
})
|