summary refs log tree commit diff
path: root/pkgs/applications/audio/mi2ly/default.nix
blob: b4f7668394f1f6a720c093522893a0206d602f0d (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{lib, stdenv, fetchurl}:
let
  s = # Generated upstream information
  rec {
    baseName="mi2ly";
    version="0.12";
    name="${baseName}-${version}";
    hash="1b14zcwlvnxhjxr3ymyzg0mg4sbijkinzpxm641s859jxcgylmll";
    url="https://download.savannah.gnu.org/releases/mi2ly/mi2ly.0.12.tar.bz2";
    sha256="1b14zcwlvnxhjxr3ymyzg0mg4sbijkinzpxm641s859jxcgylmll";
  };
  buildInputs = [
  ];
in
stdenv.mkDerivation {
  inherit (s) name version;
  inherit buildInputs;
  src = fetchurl {
    inherit (s) url sha256;
  };

  sourceRoot=".";

  hardeningDisable = [ "format" ];

  buildPhase = "./cc";
  installPhase = ''
    mkdir -p "$out"/{bin,share/doc/mi2ly}
    cp mi2ly "$out/bin"
    cp README Doc.txt COPYING Manual.txt "$out/share/doc/mi2ly"
  '';

  meta = {
    inherit (s) version;
    description = "MIDI to Lilypond converter";
    license = lib.licenses.gpl2Plus ;
    maintainers = [lib.maintainers.raskin];
    platforms = lib.platforms.linux;
    broken = true; # 2018-04-11
  };
}