@ -1,4 +1,4 @@
{ lib , stdenv , fetchgit , autoreconfHook , libdrm , libX11 , libGL , mesa , pkg-config }:
{ lib , stdenv , fetchgit , fetchpatch , autoreconfHook , libdrm , libX11 , libGL , mesa , pkg-config }:
stdenv . mkDerivation {
stdenv . mkDerivation {
pname = " k m s c u b e " ;
pname = " k m s c u b e " ;
@ -10,6 +10,15 @@ stdenv.mkDerivation {
sha256 = " 1 q 5 b 5 y v y f j 3 1 2 7 3 8 5 m p 1 b f m c b n p n b d s w d k 8 g s p p 7 g 4 5 4 1 x k 4 k 9 3 3 " ;
sha256 = " 1 q 5 b 5 y v y f j 3 1 2 7 3 8 5 m p 1 b f m c b n p n b d s w d k 8 g s p p 7 g 4 5 4 1 x k 4 k 9 3 3 " ;
} ;
} ;
patches = [
# Pull upstream patch for -fno-common toolchains.
( fetchpatch {
name = " f n o - c o m m o n . p a t c h " ;
url = " h t t p s : / / g i t l a b . f r e e d e s k t o p . o r g / m e s a / k m s c u b e / - / c o m m i t / 9 0 8 e f 3 9 8 6 4 4 4 2 c 0 8 0 7 9 5 4 a f 5 d 3 f 8 8 a 3 d a 1 a 6 f 8 a 5 . p a t c h " ;
sha256 = " 1 g x n 3 b 5 0 m v j l c 2 5 2 3 4 8 3 9 v 5 z 2 9 r 8 f d 9 d i 4 1 7 6 a 3 y x 4 g b s z 8 c c 5 v i " ;
} )
] ;
nativeBuildInputs = [ autoreconfHook pkg-config ] ;
nativeBuildInputs = [ autoreconfHook pkg-config ] ;
buildInputs = [ libdrm libX11 libGL mesa ] ;
buildInputs = [ libdrm libX11 libGL mesa ] ;