diff options
Diffstat (limited to 'nixpkgs/pkgs/applications')
-rw-r--r-- | nixpkgs/pkgs/applications/audio/orca-c/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/audio/orca-c/default.nix b/nixpkgs/pkgs/applications/audio/orca-c/default.nix new file mode 100644 index 000000000000..aa9918b8672b --- /dev/null +++ b/nixpkgs/pkgs/applications/audio/orca-c/default.nix @@ -0,0 +1,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; + }; +} |