mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
33 lines
808 B
Nix
33 lines
808 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mi2ly";
|
|
version = "0.12";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.savannah.gnu.org/releases/mi2ly/mi2ly.${version}.tar.bz2";
|
|
sha256 = "sha256-lFbqH+syFaQDMbXfb+OUcWnyKnjfVz9yl7DbTTn7JKw=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-fgnu89-inline" ];
|
|
|
|
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 = with lib; {
|
|
description = "MIDI to Lilypond converter";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://www.nongnu.org/mi2ly/";
|
|
};
|
|
}
|