nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 47 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 ncurses, 6 portmidi, 7}: 8stdenv.mkDerivation { 9 pname = "orca-c"; 10 version = "unstable-2021-02-13"; 11 12 src = fetchgit { 13 url = "https://git.sr.ht/~rabbits/orca"; 14 rev = "5ba56ca67baae3db140f8b7a2b2fc46bbac5602f"; 15 sha256 = "sha256-bbIH0kyHRTcMGXV3WdBQIH1br0FyIzKKL88wqpGZ0NY="; 16 }; 17 18 buildInputs = [ 19 ncurses 20 portmidi 21 ]; 22 23 postPatch = '' 24 patchShebangs tool 25 sed -i tool \ 26 -e 's@ncurses_dir=.*@ncurses_dir="${ncurses}"@' \ 27 -e 's@portmidi_dir=.*@portmidi_dir="${portmidi}"@' tool 28 ''; 29 30 installPhase = '' 31 runHook preInstall 32 33 mkdir -p $out/bin 34 install build/orca $out/bin/orca 35 36 runHook postInstall 37 ''; 38 39 meta = with lib; { 40 description = "Esoteric programming language designed to quickly create procedural sequencers"; 41 homepage = "https://git.sr.ht/~rabbits/orca"; 42 license = licenses.mit; 43 platforms = platforms.all; 44 maintainers = with maintainers; [ netcrns ]; 45 mainProgram = "orca"; 46 }; 47}