about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-02-10 19:54:19 +0000
committerAlyssa Ross <hi@alyssa.is>2019-02-10 19:54:19 +0000
commit7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161 (patch)
tree513a62bbb9168f961a67020024fb1eaec4352c0a
parent8b812ffa634a00f54bce63d80e1cdc2f48971448 (diff)
downloadnixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.tar
nixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.tar.gz
nixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.tar.bz2
nixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.tar.lz
nixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.tar.xz
nixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.tar.zst
nixlib-7128d0fbbf9550b4d7e5a0f7bdb86eff8111c161.zip
orca-c-100r: init at 2019-02-09
There's no orca-c attribute, but there is an orca. The authors of this
software also have an orca program, so if it was packaged for nixpkgs
it would have to be namespaced. For consistency, I namespaced this one
as well, because the alternative is a very confusing future.

I put the namespace after the name of the software so things like
autocompletion would still find it.
-rw-r--r--nixpkgs/pkgs/applications/audio/orca-c/default.nix37
-rw-r--r--nixpkgs/pkgs/top-level/all-packages.nix2
2 files changed, 39 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;
+  };
+}
diff --git a/nixpkgs/pkgs/top-level/all-packages.nix b/nixpkgs/pkgs/top-level/all-packages.nix
index 57666734c620..71183323a2a9 100644
--- a/nixpkgs/pkgs/top-level/all-packages.nix
+++ b/nixpkgs/pkgs/top-level/all-packages.nix
@@ -18725,6 +18725,8 @@ in
 
   opusTools = callPackage ../applications/audio/opus-tools { };
 
+  orca-c-100r = callPackage ../applications/audio/orca-c { };
+
   orpie = callPackage ../applications/misc/orpie {
     gsl = gsl_1;
     ocamlPackages = ocaml-ng.ocamlPackages_4_02;