2021-05-20 16:48:27 +01:00
|
|
|
{ lib, stdenv, fetchgit, ncurses, portmidi }:
|
2020-05-04 14:53:34 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "orca-c";
|
2021-11-10 21:21:47 +00:00
|
|
|
version = "unstable-2021-02-13";
|
2020-05-04 14:53:34 +01:00
|
|
|
|
2021-05-20 16:48:27 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~rabbits/orca";
|
|
|
|
rev = "5ba56ca67baae3db140f8b7a2b2fc46bbac5602f";
|
|
|
|
sha256 = "sha256-bbIH0kyHRTcMGXV3WdBQIH1br0FyIzKKL88wqpGZ0NY=";
|
2020-05-04 14:53:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses portmidi ];
|
|
|
|
|
2021-05-20 18:49:01 +01:00
|
|
|
postPatch = ''
|
2020-05-04 14:53:34 +01:00
|
|
|
patchShebangs tool
|
2022-02-18 17:26:07 +00:00
|
|
|
sed -i tool \
|
|
|
|
-e 's@ncurses_dir=.*@ncurses_dir="${ncurses}"@' \
|
|
|
|
-e 's@portmidi_dir=.*@portmidi_dir="${portmidi}"@' tool
|
2020-05-04 14:53:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-05-20 18:49:37 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-05-04 14:53:34 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
install build/orca $out/bin/orca
|
2021-05-20 18:49:37 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-05-04 14:53:34 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "An esoteric programming language designed to quickly create procedural sequencers";
|
2021-05-20 16:48:27 +01:00
|
|
|
homepage = "https://git.sr.ht/~rabbits/orca";
|
2020-05-04 14:53:34 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2021-05-20 16:48:27 +01:00
|
|
|
maintainers = with maintainers; [ netcrns ];
|
2021-10-21 14:13:57 +01:00
|
|
|
mainProgram = "orca";
|
2020-05-04 14:53:34 +01:00
|
|
|
};
|
|
|
|
}
|