tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
added chuck package
Siarhei Zirukin
11 years ago
d49e6e4b
5b024276
+53
3 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
chuck
darwin-limits.patch
default.nix
top-level
all-packages.nix
+13
pkgs/applications/audio/chuck/darwin-limits.patch
···
1
1
+
--- a/src/util_string.cpp 2014-10-27 22:52:11.875981552 +0100
2
2
+
+++ b/src/util_string.cpp 2014-10-27 22:54:18.613001994 +0100
3
3
+
@@ -40,6 +40,10 @@
4
4
+
#include <linux/limits.h>
5
5
+
#endif // __PLATFORM_LINUX__
6
6
+
7
7
+
+#ifdef __PLATFORM_MACOSX__
8
8
+
+#include <limits.h>
9
9
+
+#endif // __PLATFORM_MACOSX__
10
10
+
+
11
11
+
#include <stdio.h>
12
12
+
using namespace std;
13
13
+
+38
pkgs/applications/audio/chuck/default.nix
···
1
1
+
{ stdenv, fetchurl, alsaLib, bison, flex, libsndfile, which }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
version = "1.3.4.0";
5
5
+
name = "chuck-${version}";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "http://chuck.cs.princeton.edu/release/files/chuck-${version}.tgz";
9
9
+
sha256 = "0cwbk8b1i18nkh2nxwzk2prranw83lgglxw7ccnp6b0r2b2yfpmn";
10
10
+
};
11
11
+
12
12
+
buildInputs = [ bison flex libsndfile which ]
13
13
+
++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
14
14
+
15
15
+
patches = [ ./darwin-limits.patch ];
16
16
+
17
17
+
postPatch = ''
18
18
+
substituteInPlace src/makefile --replace "/usr/bin" "$out/bin"
19
19
+
substituteInPlace src/makefile.osx --replace "xcodebuild" "/usr/bin/xcodebuild"
20
20
+
substituteInPlace src/makefile.osx --replace "weak_framework" "framework"
21
21
+
'';
22
22
+
23
23
+
buildPhase =
24
24
+
stdenv.lib.optionals stdenv.isLinux ["make -C src linux-alsa"] ++
25
25
+
stdenv.lib.optionals stdenv.isDarwin ["make -C src osx"];
26
26
+
27
27
+
installPhase = ''
28
28
+
install -Dm755 ./src/chuck $out/bin/chuck
29
29
+
'';
30
30
+
31
31
+
meta = {
32
32
+
description = "Programming language for real-time sound synthesis and music creation";
33
33
+
homepage = http://chuck.cs.princeton.edu;
34
34
+
license = stdenv.lib.licenses.gpl2;
35
35
+
platforms = with stdenv.lib.platforms; linux ++ darwin;
36
36
+
maintainers = with stdenv.lib.maintainers; [ ftrvxmtrx ];
37
37
+
};
38
38
+
}
+2
pkgs/top-level/all-packages.nix
···
8896
8896
8897
8897
chromiumDev = lowPrio (chromium.override { channel = "dev"; });
8898
8898
8899
8899
+
chuck = callPackage ../applications/audio/chuck { };
8900
8900
+
8899
8901
cinelerra = callPackage ../applications/video/cinelerra { };
8900
8902
8901
8903
clawsMail = callPackage ../applications/networking/mailreaders/claws-mail {