nixpkgs/pkgs/os-specific/linux/kmscube/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
843 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab, meson, ninja, libdrm, libX11, libGL, mesa, pkg-config, gst_all_1 }:
2015-05-15 12:38:27 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "kmscube";
version = "unstable-2023-09-25";
2015-05-15 12:38:27 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mesa";
repo = "kmscube";
rev = "96d63eb59e34c647cda1cbb489265f8c536ae055";
hash = "sha256-kpnn4JBNvwatrcCF/RGk/fQ7qiKD26iLBr9ovDmAKBo=";
2015-05-15 12:38:27 +00:00
};
nativeBuildInputs = [ meson pkg-config ninja ];
buildInputs = [
libdrm
libX11
libGL
mesa
] ++ (with gst_all_1; [
gstreamer
gst-plugins-base
]);
2015-05-15 12:38:27 +00:00
meta = with lib; {
2015-05-15 12:38:27 +00:00
description = "Example OpenGL app using KMS/GBM";
homepage = "https://gitlab.freedesktop.org/mesa/kmscube";
2015-05-15 12:38:27 +00:00
license = licenses.mit;
maintainers = with maintainers; [ dezgeg ];
platforms = platforms.linux;
};
}