depot/third_party/nixpkgs/pkgs/tools/audio/midicsv/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

25 lines
677 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "midicsv";
version = "1.1";
src = fetchurl {
url = "http://www.fourmilab.ch/webtools/midicsv/midicsv-${version}.tar.gz";
sha256 = "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw";
};
postPatch = ''
substituteInPlace Makefile \
--replace /usr/local $out \
--replace gcc "${stdenv.cc.targetPrefix}cc"
'';
meta = with lib; {
description = "Losslessly translate MIDI to CSV and back";
homepage = "http://www.fourmilab.ch/webtools/midicsv/";
license = licenses.publicDomain;
maintainers = with maintainers; [ orivej ];
platforms = platforms.all;
};
}