Last active
April 24, 2022 10:43
-
-
Save ftrvxmtrx/23d8fba6cfbd2cc2a957a2d5cb2dbdc6 to your computer and use it in GitHub Desktop.
A Nix expression to build and install orca-c on NixOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nix-build -E 'with import <nixpkgs> {}; callPackage ./orca.nix {}' | |
{ stdenv, ncurses, portmidi }: | |
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 | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment