nixpkgs/pkgs/by-name/wf/wf-recorder/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

66 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
scdoc,
wayland-scanner,
wayland,
wayland-protocols,
ffmpeg,
x264,
libpulseaudio,
pipewire,
mesa, # for libgbm
fetchpatch,
}:
stdenv.mkDerivation rec {
pname = "wf-recorder";
version = "0.5.0";
src = fetchFromGitHub {
owner = "ammen99";
repo = pname;
rev = "v${version}";
hash = "sha256-7/fQOkfAw5v3irD5blJOdq88j0VBrPVQQufdt9wsACk=";
};
patches = [
# compile fixes from upstream, remove when they stop applying
(fetchpatch {
url = "https://github.com/ammen99/wf-recorder/commit/560bb92d3ddaeb31d7af77d22d01b0050b45bebe.diff";
sha256 = "sha256-7jbX5k8dh4dWfolMkZXiERuM72zVrkarsamXnd+1YoI=";
})
];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
scdoc
];
buildInputs = [
wayland
wayland-protocols
ffmpeg
x264
libpulseaudio
pipewire
mesa
];
meta = with lib; {
description = "Utility program for screen recording of wlroots-based compositors";
inherit (src.meta) homepage;
changelog = "https://github.com/ammen99/wf-recorder/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ dywedir ];
platforms = platforms.linux;
mainProgram = "wf-recorder";
};
}