mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
972 B
Nix
45 lines
972 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libdrm
|
|
, ffmpeg_6
|
|
, 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_6
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|