3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #151566 from Stunkymonkey/mi2ly-refactor

mi2ly: fix build and refactor
This commit is contained in:
7c6f434c 2021-12-21 13:44:05 +00:00 committed by GitHub
commit 68a7424eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 28 deletions

View file

@ -1,28 +1,20 @@
{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;
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "mi2ly";
version = "0.12";
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" ];
NIX_CFLAGS_COMPILE = [ "-fgnu89-inline" ];
buildPhase = "./cc";
installPhase = ''
mkdir -p "$out"/{bin,share/doc/mi2ly}
@ -30,12 +22,11 @@ stdenv.mkDerivation {
cp README Doc.txt COPYING Manual.txt "$out/share/doc/mi2ly"
'';
meta = {
inherit (s) version;
meta = with lib; {
description = "MIDI to Lilypond converter";
license = lib.licenses.gpl2Plus ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
broken = true; # 2018-04-11
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
homepage = "https://www.nongnu.org/mi2ly/";
};
}

View file

@ -1,3 +0,0 @@
url https://download.savannah.gnu.org/releases/mi2ly/
ensure_choice
version '.*/mi2ly[.]([0-9.]+)[.]tar.*' '\1'