Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 33 lines 843 B view raw
1{ lib, stdenv, fetchFromGitLab, meson, ninja, libdrm, libX11, libGL, mesa, pkg-config, gst_all_1 }: 2 3stdenv.mkDerivation { 4 pname = "kmscube"; 5 version = "unstable-2023-09-25"; 6 7 src = fetchFromGitLab { 8 domain = "gitlab.freedesktop.org"; 9 owner = "mesa"; 10 repo = "kmscube"; 11 rev = "96d63eb59e34c647cda1cbb489265f8c536ae055"; 12 hash = "sha256-kpnn4JBNvwatrcCF/RGk/fQ7qiKD26iLBr9ovDmAKBo="; 13 }; 14 15 nativeBuildInputs = [ meson pkg-config ninja ]; 16 buildInputs = [ 17 libdrm 18 libX11 19 libGL 20 mesa 21 ] ++ (with gst_all_1; [ 22 gstreamer 23 gst-plugins-base 24 ]); 25 26 meta = with lib; { 27 description = "Example OpenGL app using KMS/GBM"; 28 homepage = "https://gitlab.freedesktop.org/mesa/kmscube"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ dezgeg ]; 31 platforms = platforms.linux; 32 }; 33}