2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "midicsv";
|
|
|
|
version = "1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "http://www.fourmilab.ch/webtools/midicsv/midicsv-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-19 17:17:44 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr/local $out \
|
|
|
|
--replace gcc "${stdenv.cc.targetPrefix}cc"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Losslessly translate MIDI to CSV and back";
|
|
|
|
homepage = "http://www.fourmilab.ch/webtools/midicsv/";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|