@ -1,4 +1,4 @@
{ lib , stdenv , fetchFromGitHub , libsndfile , libsamplerate , liblo , libjack2 }:
{ lib , stdenv , fetchFromGitHub , fetchpatch , libsndfile , libsamplerate , liblo , libjack2 }:
stdenv . mkDerivation {
stdenv . mkDerivation {
pname = " d i r t " ;
pname = " d i r t " ;
@ -10,6 +10,15 @@ stdenv.mkDerivation {
sha256 = " 1 3 a d g l k 2 d 3 1 d 7 m s w f v i 0 2 b 0 r j d h z m s v 1 1 c c 8 s m h i d m r n s 3 f 9 s 9 6 n " ;
sha256 = " 1 3 a d g l k 2 d 3 1 d 7 m s w f v i 0 2 b 0 r j d h z m s v 1 1 c c 8 s m h i d m r n s 3 f 9 s 9 6 n " ;
fetchSubmodules = true ;
fetchSubmodules = true ;
} ;
} ;
patches = [
# Pull patch pending upstream inclusion for upstream gcc-10 support:
# https://github.com/tidalcycles/Dirt/pull/65
( 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 h u b . c o m / t i d a l c y c l e s / D i r t / c o m m i t / 4 3 f d 2 6 7 7 4 5 d 4 8 6 2 2 8 c 4 1 8 5 b 4 f c b d 7 d 9 f b c 3 6 2 c c 2 . p a t c h " ;
sha256 = " 0 8 r 3 4 y l z s 3 1 w w f 0 l a 9 9 5 p b 1 4 9 c c q 0 v r 7 q g 4 7 9 2 p k h c a 5 7 z i 0 b f f 8 " ;
} )
] ;
buildInputs = [ libsndfile libsamplerate liblo libjack2 ] ;
buildInputs = [ libsndfile libsamplerate liblo libjack2 ] ;
postPatch = ''
postPatch = ''
sed - i " s | . / s a m p l e s | $ o u t / s h a r e / d i r t / s a m p l e s | " dirt . c
sed - i " s | . / s a m p l e s | $ o u t / s h a r e / d i r t / s a m p l e s | " dirt . c