@ -1,22 +1,34 @@
{ lib , stdenv , autoreconfHook , fetchsvn , flac , libao , libvorbis , ncurses
{ lib , stdenv , autoreconfHook , fetchFromGitLab , fetchpatch , flac , libao , libvorbis , ncurses
, opusfile , pkg-config
} :
stdenv . mkDerivation rec {
name = " s q u i s h y b a l l - ${ rev } " ;
rev = " 1 9 5 8 0 " ;
src = fetchsvn {
url = " h t t p s : / / s v n . x i p h . o r g / t r u n k / s q u i s h y b a l l " ;
rev = rev ;
sha256 = " 0 1 3 v q 5 2 q 9 z 6 k p g 9 i y c 2 j n b 3 m 2 g i h c j b l v w p g 4 y j 4 w y 1 q 2 c 0 5 p z q p " ;
pname = " s q u i s h y b a l l " ;
version = " u n s t a b l e - 2 0 2 0 - 1 1 - 2 3 " ;
src = fetchFromGitLab {
domain = " g i t l a b . x i p h . o r g " ;
owner = " x i p h " ;
repo = " s q u i s h y b a l l " ;
rev = " 2 7 5 9 0 f e 6 b a c 5 4 5 e 2 d d 3 e a c f 0 4 8 e d b d 9 6 9 6 8 2 2 6 3 a " ;
sha256 = " 0 7 z s 8 w x 1 a h f 3 q 5 0 5 f k 9 b 6 c g z l k h n a y f s s c c h 4 6 y y 9 s 1 w g x g p h j 7 s " ;
} ;
nativeBuildInputs = [ autoreconfHook pkg-config ] ;
buildInputs = [ flac libao libvorbis ncurses opusfile ] ;
patches = [ ./gnu-screen.patch ] ;
patches = [
./gnu-screen.patch
# Patch pending upstream inclusion for ncurses-6.3 support:
# https://gitlab.xiph.org/xiph/squishyball/-/issues/1
( fetchpatch {
name = " n c u r s e s - 6 . 3 . p a t c h " ;
url = " h t t p s : / / g i t l a b . x i p h . o r g / x i p h / s q u i s h y b a l l / u p l o a d s / 5 6 0 9 c e a f 8 5 e b b 6 d c 2 9 7 c 0 e f e 6 1 b 9 a 1 b 7 / 0 0 0 1 - m i n c u r s e s . c - u s e - n c u r s e s - A P I - t o - e n t e r - r a w - m o d e - n c u r s e . p a t c h " ;
sha256 = " 0 6 l l p 7 c d 7 7 f 4 v v h z 8 q d l d 5 5 1 d n l p j x f 9 8 j 7 r m p 3 i 1 x 1 k n g 4 f 0 i y 3 " ;
} )
] ;
postInstall = ''
# Why doesn’t this happen automagically?
@ -40,7 +52,7 @@ stdenv.mkDerivation rec {
comparisons of groups of up to ten samples ; this is the default
mode of operation .
'' ;
homepage = " h t t p s : / / s v n . x i p h . o r g / t r u n k / s q u i s h y b a l l " ;
homepage = " h t t p s : / / g i t l a b . x i p h . o r g / x i p h / s q u i s h y b a l l " ;
license = licenses . gpl2Plus ;
maintainers = with maintainers ; [ michalrus ] ;
platforms = platforms . linux ;