blob: aa9918b8672b7030f6082dee52dc6516ffb307a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, lib, fetchFromGitHub, ncurses
, portmidiSupport ? false, portmidi }:
stdenv.mkDerivation rec {
name = "orca-${version}-unstable";
version = "2019-02-09";
src = fetchFromGitHub {
owner = "hundredrabbits";
repo = "Orca-c";
rev = "32ca897ef95687a9787453b3d1fc3c80488bfa81";
sha256 = "14fn9hlhb0nxfmslynd4knp3li6b981fbqag2n1m1jya8m5mcrwc";
};
buildInputs = [ ncurses ] ++ lib.optional enablePortmidi portmidi;
buildPhase = ''
runHook preBuild
bash tool ${if enablePortmidi then "--portmidi" else ""} build release orca
runHook postBuild
'';
installPhase = ''
runHook preinstall
mkdir -p "$out/bin"
cp build/release/orca "$out/bin"
runHook postInstall
'';
meta = with lib; {
description = "Live programming environment (C port)";
homepage = https://100r.co/pages/orca.html;
license = licenses.mit;
maintainers = with maintainers; [ qyliss ];
platforms = platforms.all;
};
}
|