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