lenmus: fix build

This commit is contained in:
wxt 2024-10-22 21:51:20 +08:00
parent 7c6d293f46
commit ef1b4c9636

View File

@ -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";
};
}
})