Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "midicsv"; 5 version = "1.1"; 6 7 src = fetchurl { 8 url = "https://www.fourmilab.ch/webtools/midicsv/midicsv-${version}.tar.gz"; 9 sha256 = "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"; 10 }; 11 12 postPatch = '' 13 substituteInPlace Makefile \ 14 --replace /usr/local $out \ 15 --replace gcc "${stdenv.cc.targetPrefix}cc" 16 ''; 17 18 meta = with lib; { 19 description = "Losslessly translate MIDI to CSV and back"; 20 homepage = "https://www.fourmilab.ch/webtools/midicsv/"; 21 license = licenses.publicDomain; 22 maintainers = with maintainers; [ orivej ]; 23 platforms = platforms.all; 24 }; 25}