From ef1b4c9636c24f70f4d994c7377bada772444e44 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Tue, 22 Oct 2024 21:51:20 +0800 Subject: [PATCH] lenmus: fix build --- pkgs/by-name/le/lenmus/package.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/le/lenmus/package.nix b/pkgs/by-name/le/lenmus/package.nix index 0baf716a69d9f..4a7fbb5409db8 100644 --- a/pkgs/by-name/le/lenmus/package.nix +++ b/pkgs/by-name/le/lenmus/package.nix @@ -24,15 +24,19 @@ let inherit (darwin.apple_sdk.frameworks) Cocoa; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "lenmus"; version = "6.0.1"; src = fetchFromGitHub { owner = "lenmus"; repo = "lenmus"; - rev = "Release_${version}"; - sha256 = "sha256-qegOAc6vs2+6VViDHVjv0q+qjLZyTT7yPF3hFpTt5zE="; + rev = "Release_${finalAttrs.version}"; + hash = "sha256-qegOAc6vs2+6VViDHVjv0q+qjLZyTT7yPF3hFpTt5zE="; + }; + + env = { + NIX_CFLAGS_COMPILE = "-fpermissive"; }; postPatch = '' @@ -87,7 +91,7 @@ stdenv.mkDerivation rec { makeWrapper $out/{Applications/lenmus.app/Contents/MacOS,bin}/lenmus ''; - meta = with lib; { + meta = { description = "LenMus Phonascus is a program for learning music"; longDescription = '' LenMus Phonascus is a free open source program (GPL v3) for learning music. @@ -95,9 +99,9 @@ stdenv.mkDerivation rec { The different activities can be customized to meet your needs ''; homepage = "http://www.lenmus.org/"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ ramkromberg ]; - platforms = with platforms; unix; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ ramkromberg ]; + platforms = lib.platforms.unix; mainProgram = "lenmus"; }; -} +})