monkeysAudio: give stdenv.mkDerivation a function

This commit is contained in:
Doron Behar 2023-09-18 16:41:59 +03:00
parent 742f2ff317
commit 90036927a9

View file

@ -4,13 +4,13 @@
, cmake , cmake
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
version = "10.22"; version = "10.22";
pname = "monkeys-audio"; pname = "monkeys-audio";
src = fetchzip { src = fetchzip {
url = "https://monkeysaudio.com/files/MAC_${ url = "https://monkeysaudio.com/files/MAC_${
builtins.concatStringsSep "" (lib.strings.splitString "." version)}_SDK.zip"; builtins.concatStringsSep "" (lib.strings.splitString "." finalAttrs.version)}_SDK.zip";
sha256 = "sha256-JmDH9IudtuJdu1kSDI1RNaYiIgmPgH4RT2Myz9ihQH4="; sha256 = "sha256-JmDH9IudtuJdu1kSDI1RNaYiIgmPgH4RT2Myz9ihQH4=";
stripRoot = false; stripRoot = false;
}; };
@ -28,4 +28,4 @@ stdenv.mkDerivation rec {
license = licenses.free; license = licenses.free;
maintainers = with maintainers; [ doronbehar ]; maintainers = with maintainers; [ doronbehar ];
}; };
} })