kmscube: unstable-2018-06-17 -> unstable-2023-09-25

A lot of new features were added to kmscube since 2018. A new program
called "textuator" has also been added, that supposedly helps with
texture layout debugging.
This commit is contained in:
György Kurucz 2023-12-21 00:26:07 +01:00 committed by Alyssa Ross
parent 34258cec44
commit f53dba04b7

View File

@ -1,26 +1,27 @@
{ lib, stdenv, fetchgit, fetchpatch, autoreconfHook, libdrm, libX11, libGL, mesa, pkg-config }:
{ lib, stdenv, fetchFromGitLab, meson, ninja, libdrm, libX11, libGL, mesa, pkg-config, gst_all_1 }:
stdenv.mkDerivation {
pname = "kmscube";
version = "unstable-2018-06-17";
version = "unstable-2023-09-25";
src = fetchgit {
url = "git://anongit.freedesktop.org/mesa/kmscube";
rev = "9dcce71e603616ee7a54707e932f962cdf8fb20a";
sha256 = "1q5b5yvyfj3127385mp1bfmcbnpnbdswdk8gspp7g4541xk4k933";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mesa";
repo = "kmscube";
rev = "96d63eb59e34c647cda1cbb489265f8c536ae055";
hash = "sha256-kpnn4JBNvwatrcCF/RGk/fQ7qiKD26iLBr9ovDmAKBo=";
};
patches = [
# Pull upstream patch for -fno-common toolchains.
(fetchpatch {
name = "fno-common.patch";
url = "https://gitlab.freedesktop.org/mesa/kmscube/-/commit/908ef39864442c0807954af5d3f88a3da1a6f8a5.patch";
sha256 = "1gxn3b50mvjlc25234839v5z29r8fd9di4176a3yx4gbsz8cc5vi";
})
];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libdrm libX11 libGL mesa ];
nativeBuildInputs = [ meson pkg-config ninja ];
buildInputs = [
libdrm
libX11
libGL
mesa
] ++ (with gst_all_1; [
gstreamer
gst-plugins-base
]);
meta = with lib; {
description = "Example OpenGL app using KMS/GBM";