lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v206 38 lines 1.3 kB view raw
1{ stdenv, fetchurl, alsaLib, bison, flex, libsndfile, which }: 2 3stdenv.mkDerivation rec { 4 version = "1.3.5.1"; 5 name = "chuck-${version}"; 6 7 src = fetchurl { 8 url = "http://chuck.cs.princeton.edu/release/files/chuck-${version}.tgz"; 9 sha256 = "0lqzkphfd91kz95nf1wqy0z17r1m70c8inwvnb9fscbiaihwlhfi"; 10 }; 11 12 buildInputs = [ bison flex libsndfile which ] 13 ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib; 14 15 patches = [ ./darwin-limits.patch ]; 16 17 postPatch = '' 18 substituteInPlace src/makefile --replace "/usr/bin" "$out/bin" 19 substituteInPlace src/makefile.osx --replace "xcodebuild" "/usr/bin/xcodebuild" 20 substituteInPlace src/makefile.osx --replace "weak_framework" "framework" 21 ''; 22 23 buildPhase = 24 stdenv.lib.optionals stdenv.isLinux ["make -C src linux-alsa"] ++ 25 stdenv.lib.optionals stdenv.isDarwin ["make -C src osx"]; 26 27 installPhase = '' 28 install -Dm755 ./src/chuck $out/bin/chuck 29 ''; 30 31 meta = { 32 description = "Programming language for real-time sound synthesis and music creation"; 33 homepage = http://chuck.cs.princeton.edu; 34 license = stdenv.lib.licenses.gpl2; 35 platforms = with stdenv.lib.platforms; linux ++ darwin; 36 maintainers = with stdenv.lib.maintainers; [ ftrvxmtrx ]; 37 }; 38}