From e5eaf4918dd3c99fa902b18f74430dfcb2c0a7bd Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 2 Mar 2023 10:58:24 +0200 Subject: [PATCH 1/2] monkeysAudio: 3.99 -> 9.20 --- .../audio/monkeys-audio/default.nix | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/pkgs/applications/audio/monkeys-audio/default.nix b/pkgs/applications/audio/monkeys-audio/default.nix index 05647af2201a..12ab5e8a1425 100644 --- a/pkgs/applications/audio/monkeys-audio/default.nix +++ b/pkgs/applications/audio/monkeys-audio/default.nix @@ -1,28 +1,25 @@ -{lib, gcc10Stdenv, fetchurl}: +{ lib +, stdenv +, fetchzip +, cmake +}: -gcc10Stdenv.mkDerivation rec { - version = "3.99-u4-b5"; - pname = "monkeys-audio-old"; +stdenv.mkDerivation rec { + version = "9.20"; + pname = "monkeys-audio"; - patches = [ ./buildfix.diff ]; - - src = fetchurl { - /* - The real homepage is , but in fact we are - getting an old, ported to Linux version of the sources, made by (quoting - from the AUTHORS file found in the source): - - Frank Klemm : First port to linux (with makefile) - - SuperMMX : Package the source, include the frontend and shared lib, - porting to Big Endian platform and adding other non-win32 enhancement. - */ - url = "https://deb-multimedia.org/pool/main/m/${pname}/${pname}_${version}.orig.tar.gz"; - sha256 = "0kjfwzfxfx7f958b2b1kf8yj655lp0ppmn0sh57gbkjvj8lml7nz"; + src = fetchzip { + url = "https://monkeysaudio.com/files/MAC_${ + builtins.concatStringsSep "" (lib.strings.splitString "." version)}_SDK.zip"; + sha256 = "sha256-8cJ88plR9jrrLdzRHzRotGBrn6qIqOWvl+oOTXxY/TE="; + stripRoot = false; }; + nativeBuildInputs = [ + cmake + ]; meta = with lib; { - description = "Lossless audio codec"; + description = "APE codec and decompressor"; platforms = platforms.linux; # This is not considered a GPL license, but it seems rather free although # it's not standard, see a quote of it: From c32c6d7a7d97d533cbb7dac777328cc1b84919d8 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 5 Mar 2023 08:00:01 +0200 Subject: [PATCH 2/2] monkeysAudio: Add @doronbehar as maintainer --- pkgs/applications/audio/monkeys-audio/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/audio/monkeys-audio/default.nix b/pkgs/applications/audio/monkeys-audio/default.nix index 12ab5e8a1425..01bb8b6253e2 100644 --- a/pkgs/applications/audio/monkeys-audio/default.nix +++ b/pkgs/applications/audio/monkeys-audio/default.nix @@ -25,6 +25,6 @@ stdenv.mkDerivation rec { # it's not standard, see a quote of it: # https://github.com/NixOS/nixpkgs/pull/171682#issuecomment-1120260551 license = licenses.free; - maintainers = [ ]; + maintainers = with maintainers; [ doronbehar ]; }; }