nixpkgs/pkgs/applications/audio/chuck/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-31 16:37:43 +00:00
{ stdenv, lib, fetchurl, alsa-lib, bison, flex, libsndfile, which, DarwinTools, xcbuild
, AppKit, Carbon, CoreAudio, CoreMIDI, CoreServices, Kernel, MultitouchSupport
2018-03-08 22:33:35 +00:00
}:
2014-10-27 22:28:10 +00:00
stdenv.mkDerivation rec {
2023-01-28 07:35:21 +00:00
version = "1.4.2.0";
pname = "chuck";
2014-10-27 22:28:10 +00:00
src = fetchurl {
url = "http://chuck.cs.princeton.edu/release/files/chuck-${version}.tgz";
2023-01-28 07:35:21 +00:00
sha256 = "sha256-hIwsC9rYgXWSTFqUufKGqoT0Gnsf4nR4KQ0iSVbj8xg=";
2014-10-27 22:28:10 +00:00
};
2022-12-31 16:37:43 +00:00
nativeBuildInputs = [ flex bison which ]
++ lib.optionals stdenv.isDarwin [ DarwinTools xcbuild ];
2018-08-17 03:54:32 +00:00
buildInputs = [ libsndfile ]
++ lib.optional (!stdenv.isDarwin) alsa-lib
2022-12-31 16:37:43 +00:00
++ lib.optionals stdenv.isDarwin [ AppKit Carbon CoreAudio CoreMIDI CoreServices Kernel MultitouchSupport ];
2014-10-27 22:28:10 +00:00
2019-07-31 12:05:55 +00:00
patches = [ ./darwin-limits.patch ];
2018-03-08 22:33:35 +00:00
2018-08-17 03:54:32 +00:00
makeFlags = [ "-C src" "DESTDIR=$(out)/bin" ];
2022-12-31 16:37:43 +00:00
buildFlags = [ (if stdenv.isDarwin then "mac" else "linux-alsa") ];
2014-10-27 22:28:10 +00:00
2018-08-17 03:54:32 +00:00
meta = with lib; {
2014-10-27 22:28:10 +00:00
description = "Programming language for real-time sound synthesis and music creation";
homepage = "http://chuck.cs.princeton.edu";
2017-03-05 14:43:12 +00:00
license = licenses.gpl2;
2019-07-31 12:05:55 +00:00
platforms = platforms.unix;
2017-03-05 14:43:12 +00:00
maintainers = with maintainers; [ ftrvxmtrx ];
2014-10-27 22:28:10 +00:00
};
}