mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +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.
66 lines
1.3 KiB
Nix
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";
|
|
};
|
|
}
|