about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/midicsv/default.nix
blob: 673503d51d7b86d72b979d404c145112b4647637 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "midicsv";
  version = "1.1";

  src = fetchurl {
    url = "https://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 = "https://www.fourmilab.ch/webtools/midicsv/";
    license = licenses.publicDomain;
    maintainers = with maintainers; [ orivej ];
    platforms = platforms.all;
  };
}