ref: dd470b171237d28bca26abd57bdecbbedba13f48
parent: 164c86c9a8d474a8a9e240d4894ba5081928a364
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Feb 11 16:19:09 EST 2020
add Nix expression for Orca installation
--- /dev/null
+++ b/default.nix
@@ -1,0 +1,21 @@
+# nix-env -i -f ./default.nix
+
+{ nixpkgs ? import <nixpkgs> {} }:
+
+with nixpkgs; stdenv.mkDerivation rec {
+ name = "orca";
+ src = ./.;
+
+ buildInputs = [ ncurses portmidi ];
+ enableParallelBuilding = true;
+
+ buildPhase = ''
+ patchShebangs ./tool
+ make
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp build/orca $out/bin/orca
+ '';
+}