2022-05-15 16:01:22 +00:00
|
|
|
{ lib, stdenv, fetchgit, fetchpatch, autoreconfHook, libdrm, libX11, libGL, mesa, pkg-config }:
|
2015-05-15 12:38:27 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-27 14:47:49 +00:00
|
|
|
pname = "kmscube";
|
|
|
|
version = "unstable-2018-06-17";
|
2015-05-15 12:38:27 +00:00
|
|
|
|
2017-03-11 14:36:56 +00:00
|
|
|
src = fetchgit {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "git://anongit.freedesktop.org/mesa/kmscube";
|
2018-09-14 18:28:10 +00:00
|
|
|
rev = "9dcce71e603616ee7a54707e932f962cdf8fb20a";
|
|
|
|
sha256 = "1q5b5yvyfj3127385mp1bfmcbnpnbdswdk8gspp7g4541xk4k933";
|
2015-05-15 12:38:27 +00:00
|
|
|
};
|
|
|
|
|
2022-05-15 16:01:22 +00:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2019-05-28 19:09:34 +00:00
|
|
|
buildInputs = [ libdrm libX11 libGL mesa ];
|
2015-05-15 12:38:27 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-05-15 12:38:27 +00:00
|
|
|
description = "Example OpenGL app using KMS/GBM";
|
2020-04-01 01:11:51 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|