mi2ly: fix build and refactor
This commit is contained in:
parent
459f9fe2be
commit
e7876ed402
2 changed files with 16 additions and 28 deletions
|
@ -1,28 +1,20 @@
|
||||||
{lib, stdenv, fetchurl}:
|
{ lib, stdenv, fetchurl }:
|
||||||
let
|
|
||||||
s = # Generated upstream information
|
stdenv.mkDerivation rec {
|
||||||
rec {
|
pname = "mi2ly";
|
||||||
baseName="mi2ly";
|
version = "0.12";
|
||||||
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 {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
url = "https://download.savannah.gnu.org/releases/mi2ly/mi2ly.${version}.tar.bz2";
|
||||||
|
sha256 = "sha256-lFbqH+syFaQDMbXfb+OUcWnyKnjfVz9yl7DbTTn7JKw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot=".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = [ "-fgnu89-inline" ];
|
||||||
|
|
||||||
buildPhase = "./cc";
|
buildPhase = "./cc";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out"/{bin,share/doc/mi2ly}
|
mkdir -p "$out"/{bin,share/doc/mi2ly}
|
||||||
|
@ -30,12 +22,11 @@ stdenv.mkDerivation {
|
||||||
cp README Doc.txt COPYING Manual.txt "$out/share/doc/mi2ly"
|
cp README Doc.txt COPYING Manual.txt "$out/share/doc/mi2ly"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
inherit (s) version;
|
|
||||||
description = "MIDI to Lilypond converter";
|
description = "MIDI to Lilypond converter";
|
||||||
license = lib.licenses.gpl2Plus ;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [lib.maintainers.raskin];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
broken = true; # 2018-04-11
|
homepage = "https://www.nongnu.org/mi2ly/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
url https://download.savannah.gnu.org/releases/mi2ly/
|
|
||||||
ensure_choice
|
|
||||||
version '.*/mi2ly[.]([0-9.]+)[.]tar.*' '\1'
|
|
Loading…
Reference in a new issue