diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2021-10-07 16:36:07 +0200 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2021-10-07 16:42:11 +0200 |
commit | 781972b22f25e721d745b712aff4ec1a2f9c64ac (patch) | |
tree | f78afa19b6b1ba11bbc7da432d7de7786fbff8fd | |
parent | 92432797bd4a2025ca8239132081dba912cff306 (diff) |
libopenglrecorder: init at unstable-2020-08-13
-rw-r--r-- | pkgs/development/libraries/libopenglrecorder/default.nix | 46 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libopenglrecorder/default.nix b/pkgs/development/libraries/libopenglrecorder/default.nix new file mode 100644 index 0000000000000..05616dd7c9842 --- /dev/null +++ b/pkgs/development/libraries/libopenglrecorder/default.nix @@ -0,0 +1,46 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c542955a6c72..70dcaa6cee71c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17693,6 +17693,8 @@ with pkgs; libopenaptx = callPackage ../development/libraries/libopenaptx { }; + libopenglrecorder = callPackage ../development/libraries/libopenglrecorder { }; + libopus = callPackage ../development/libraries/libopus { }; libopusenc = callPackage ../development/libraries/libopusenc { }; |