nixpkgs/pkgs/applications/audio/orca-c/default.nix

37 lines
848 B
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, ncurses, portmidi }:
2020-05-04 13:53:34 +00:00
stdenv.mkDerivation {
pname = "orca-c";
version = "git-2021-02-13";
2020-05-04 13:53:34 +00:00
src = fetchgit {
url = "https://git.sr.ht/~rabbits/orca";
rev = "5ba56ca67baae3db140f8b7a2b2fc46bbac5602f";
sha256 = "sha256-bbIH0kyHRTcMGXV3WdBQIH1br0FyIzKKL88wqpGZ0NY=";
2020-05-04 13:53:34 +00:00
};
buildInputs = [ ncurses portmidi ];
postPatch = ''
2020-05-04 13:53:34 +00:00
patchShebangs tool
'';
installPhase = ''
runHook preInstall
2020-05-04 13:53:34 +00:00
mkdir -p $out/bin
install build/orca $out/bin/orca
runHook postInstall
2020-05-04 13:53:34 +00:00
'';
meta = with lib; {
description = "An esoteric programming language designed to quickly create procedural sequencers";
homepage = "https://git.sr.ht/~rabbits/orca";
2020-05-04 13:53:34 +00:00
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ netcrns ];
2021-10-21 13:13:57 +00:00
mainProgram = "orca";
2020-05-04 13:53:34 +00:00
};
}