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

  version = "git-2021-02-13";

  src = fetchgit {
    url = "https://git.sr.ht/~rabbits/orca";
    rev = "5ba56ca67baae3db140f8b7a2b2fc46bbac5602f";
    sha256 = "sha256-bbIH0kyHRTcMGXV3WdBQIH1br0FyIzKKL88wqpGZ0NY=";
  };

  buildInputs = [ ncurses portmidi ];

  postPatch = ''
    patchShebangs tool
  '';

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    install build/orca $out/bin/orca

    runHook postInstall
  '';

  meta = with lib; {
    description = "An esoteric programming language designed to quickly create procedural sequencers";
    homepage = "https://git.sr.ht/~rabbits/orca";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ netcrns ];
  };
}