shithub: orca

ref: e4562fa250aa010e1cab060acbe52da62454e9ce
dir: orca/default.nix

View raw version
# 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
  '';
}