Skip to content

Commit

Permalink
milkytracker: Modernise
Browse files Browse the repository at this point in the history
- nixfmt
- Drop meta-wide "with lib"
- Darwin frameworks are stdenv-provided now
  • Loading branch information
OPNA2608 committed Dec 5, 2024
1 parent e0e69f2 commit 089f781
Showing 1 changed file with 31 additions and 37 deletions.
68 changes: 31 additions & 37 deletions pkgs/applications/audio/milkytracker/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{ lib
, stdenv
, fetchFromGitHub
, gitUpdater
, alsa-lib
, cmake
, Cocoa
, CoreAudio
, Foundation
, libjack2
, lhasa
, makeWrapper
, perl
, pkg-config
, rtmidi
, SDL2
, zlib
, zziplib
{
lib,
stdenv,
fetchFromGitHub,
gitUpdater,
alsa-lib,
cmake,
libjack2,
lhasa,
makeWrapper,
pkg-config,
rtmidi,
SDL2,
zlib,
zziplib,
}:

stdenv.mkDerivation (finalAttrs: {
Expand All @@ -37,21 +34,18 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
];

buildInputs = [
lhasa
libjack2
perl
rtmidi
SDL2
zlib
zziplib
] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Cocoa
CoreAudio
Foundation
];
buildInputs =
[
lhasa
libjack2
rtmidi
SDL2
zlib
zziplib
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
];

postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
install -Dm644 $src/resources/milkytracker.desktop $out/share/applications/milkytracker.desktop
Expand All @@ -63,14 +57,14 @@ stdenv.mkDerivation (finalAttrs: {
rev-prefix = "v";
};

meta = with lib; {
meta = {
description = "Music tracker application, similar to Fasttracker II";
homepage = "https://milkytracker.org/";
license = licenses.gpl3Plus;
platforms = platforms.unix;
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.unix;
# ibtool -> real Xcode -> I can't get that, and Ofborg can't test that
broken = stdenv.hostPlatform.isDarwin;
maintainers = with maintainers; [ OPNA2608 ];
maintainers = with lib.maintainers; [ OPNA2608 ];
mainProgram = "milkytracker";
};
})

0 comments on commit 089f781

Please sign in to comment.