about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/audio/orca-c/default.nix
blob: 4cd5d52613ad938fb954a95d823a03186590e153 (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
{ lib, stdenv, fetchFromGitHub, ncurses, portmidi }:
stdenv.mkDerivation {
  pname = "orca-c";

  version = "git-2020-05-01";

  src = fetchFromGitHub {
    owner = "hundredrabbits";
    repo = "Orca-c";
    rev = "d7a3b169c5ed0b06a9ad0fdb3057704da9a0b6ce";
    sha256 = "101y617a295hzwr98ykvza1sycxlk29kzxn2ybjwc718r0alkbzz";
  };

  buildInputs = [ ncurses portmidi ];

  patchPhase = ''
    patchShebangs tool
  '';

  installPhase = ''
    mkdir -p $out/bin
    install build/orca $out/bin/orca
  '';

  meta = with lib; {
    description = "An esoteric programming language designed to quickly create procedural sequencers";
    homepage = "https://github.com/hundredrabbits/Orca-c";
    license = licenses.mit;
    platforms = platforms.all;
  };
}