shithub: orca

ref: 06f0f47a9dde43779913462a8e5ab5ccbf0c514a
dir: /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
  '';
}