nixpkgs/pkgs/by-name/li/libopenglrecorder/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

47 lines
969 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, libjpeg
, libvpx
, openh264
, withPulse ? stdenv.hostPlatform.isLinux
, libpulseaudio
, libvorbis
}:
stdenv.mkDerivation rec {
pname = "libopenglrecorder";
version = "unstable-2020-08-13";
src = fetchFromGitHub {
owner = "Benau";
repo = "libopenglrecorder";
rev = "c1b81ce26e62fae1aaa086b5cd337cb12361ea3d";
sha256 = "13s2d7qs8z4w0gb3hx03n97xmwl07d4s473m4gw90qcvmz217kiz";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libjpeg
libvpx
openh264
] ++ lib.optionals withPulse [
libpulseaudio
libvorbis
];
meta = with lib; {
description = "Library allowing Optional async readback OpenGL frame buffer with optional audio recording";
homepage = "https://github.com/Benau/libopenglrecorder";
license = licenses.bsd3;
maintainers = with maintainers; [ OPNA2608 ];
platforms = with platforms; windows ++ linux;
};
}