@ -1,4 +1,4 @@
{ lib , stdenv , fetchurl
{ lib , stdenv , fetchurl , fetchpatch
, pkg-config
, pkg-config
, bison , flex
, bison , flex
, makeWrapper } :
, makeWrapper } :
@ -14,6 +14,16 @@ stdenv.mkDerivation rec {
sha256 = " 1 z 2 g p a 5 r b q b 7 j s c q l f 2 5 8 k 0 b 0 j c 7 d 2 z k y i p b 5 c s j p j 6 d 3 s w 4 5 n 4 k " ;
sha256 = " 1 z 2 g p a 5 r b q b 7 j s c q l f 2 5 8 k 0 b 0 j c 7 d 2 z k y i p b 5 c s j p j 6 d 3 s w 4 5 n 4 k " ;
} ;
} ;
patches = [
# Pull patch pending upstream inclusion for -fno-common toolchains:
# https://gitlab.com/esr/intercal/-/issues/4
( 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 w e b . g e n t o o . o r g / r e p o / g e n t o o . g i t / p l a i n / d e v - l a n g / c - i n t e r c a l / f i l e s / c - i n t e r c a l - 3 1 . 0 - n o - c o m m o n . p a t c h ? i d = a 1 1 0 a 9 8 b 4 d e 6 f 2 8 0 d 7 7 0 b a 3 c c 9 2 a 4 6 1 2 3 2 6 2 0 5 a 3 " ;
sha256 = " 0 3 5 2 3 f c 4 0 0 4 2 r 2 r y q 5 v a l 2 7 p r l i m 8 p l d 4 9 5 0 q q p a w p i s m 4 w 3 y 1 p 2 " ;
} )
] ;
buildInputs =
buildInputs =
[ pkg-config bison flex makeWrapper ] ;
[ pkg-config bison flex makeWrapper ] ;