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

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

65 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2021-05-01 00:40:53 +02:00
{ lib
, stdenv
2023-06-19 15:54:10 +02:00
, fetchFromGitHub
, qmake
, wrapQtAppsHook
, qt6Packages
2021-05-01 00:40:53 +02:00
, bison
, flex
, which
, alsa-lib
2021-05-01 00:40:53 +02:00
, libsndfile
, libpulseaudio
, libjack2
, audioBackend ? "pulse" # "pulse", "alsa", or "jack"
}:
2023-06-19 15:54:10 +02:00
stdenv.mkDerivation (finalAttrs: {
2021-05-01 00:40:53 +02:00
pname = "miniaudicle";
2024-01-01 07:11:03 +01:00
version = "1.5.2.0";
2023-06-19 15:54:10 +02:00
src = fetchFromGitHub {
owner = "ccrma";
repo = "miniAudicle";
rev = "chuck-${finalAttrs.version}";
2024-01-01 07:11:03 +01:00
hash = "sha256-jpPF2Qx/6tiotsj92m1XmxsEUgtm5029ijpu3O8B9qM=";
2023-06-19 15:54:10 +02:00
fetchSubmodules = true;
2021-05-01 00:40:53 +02:00
};
sourceRoot = "${finalAttrs.src.name}/src";
2021-05-01 00:40:53 +02:00
postPatch = ''
2023-06-19 15:54:10 +02:00
echo '#define GIT_REVISION "${finalAttrs.version}-NixOS"' > git-rev.h
2021-05-01 00:40:53 +02:00
substituteInPlace miniAudicle.pro \
--replace "/usr/local" $out
'';
nativeBuildInputs = [
bison
flex
which
qmake
wrapQtAppsHook
2021-05-01 00:40:53 +02:00
];
buildInputs = [
alsa-lib
2021-05-01 00:40:53 +02:00
libsndfile
qt6Packages.qscintilla
2021-05-01 00:40:53 +02:00
] ++ lib.optional (audioBackend == "pulse") libpulseaudio
++ lib.optional (audioBackend == "jack") libjack2;
buildFlags = [ "linux-${audioBackend}" ];
meta = with lib; {
description = "A light-weight integrated development environment for the ChucK digital audio programming language";
mainProgram = "miniAudicle";
2021-05-01 00:40:53 +02:00
homepage = "https://audicle.cs.princeton.edu/mini/";
downloadPage = "https://audicle.cs.princeton.edu/mini/linux/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
broken = stdenv.isDarwin; # not attempted
};
2023-06-19 15:54:10 +02:00
})