Merge pull request #241989 from PowerUser64/jackass

jackass: init at v0.2.3

authored by Pol Dellaiera and committed by GitHub a07fe6ba e0bc5834

+66
+66
pkgs/by-name/ja/jackass/package.nix
··· 1 + { lib, stdenv, fetchFromGitHub, fetchzip, pkg-config, wine64, enableJackAssWine64 ? false }: 2 + 3 + let 4 + # equal to vst-sdk in ../oxefmsynth/default.nix 5 + vst-sdk = stdenv.mkDerivation (finalAttrs: { 6 + name = "vstsdk3610_11_06_2018_build_37"; 7 + src = fetchzip { 8 + url = "https://web.archive.org/web/20181016150224if_/https://download.steinberg.net/sdk_downloads/${finalAttrs.name}.zip"; 9 + hash = "sha256-cjYakxnqSDqSZ32FPK3OUhDpslOlavHh5SAVpng0QTU="; 10 + }; 11 + installPhase = '' 12 + runHook preInstall 13 + cp -r . $out 14 + runHook postInstall 15 + ''; 16 + }); 17 + 18 + in 19 + stdenv.mkDerivation (finalAttrs: { 20 + pname = "jackass"; 21 + version = "1.1"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "falkTX"; 25 + repo = "JackAss"; 26 + rev = "v${finalAttrs.version}"; 27 + hash = "sha256-6mqG4H6iGvDbGnmMeP/vcvSnvUGClZUl06XpKovt50E="; 28 + }; 29 + 30 + postPatch = '' 31 + cp -r ${vst-sdk}/VST2_SDK/{public.sdk,pluginterfaces} vstsdk2.4 32 + ''; 33 + 34 + nativeBuildInputs = [ pkg-config ] ++ lib.optionals enableJackAssWine64 [ wine64 ]; 35 + 36 + makeFlags = [ "linux" ] ++ lib.optionals enableJackAssWine64 [ "wine64" ]; 37 + 38 + installPhase = '' 39 + runHook preInstall 40 + 41 + install_dir="$out/lib/vst" 42 + mkdir -p $install_dir 43 + for file in JackAss.so JackAssWine64.dll; do 44 + if test -f "$file"; then 45 + cp $file $install_dir 46 + fi 47 + done 48 + 49 + runHook postInstall 50 + ''; 51 + 52 + enableParallelBuilding = true; 53 + 54 + meta = with lib; { 55 + description = "JackAss is a VST plugin that provides JACK-MIDI support for VST hosts."; 56 + longDescription = '' 57 + Simply load the plugin in your favourite host to get a JACK-MIDI port. 58 + Optionally includes a special Wine build for running in Wine 59 + applications. Set enableJackAssWine64 to true to enable this output. 60 + ''; 61 + homepage = "https://github.com/falkTX/JackAss"; 62 + maintainers = with maintainers; [ PowerUser64 ]; 63 + license = with licenses; [ mit unfree ]; 64 + platforms = platforms.linux; 65 + }; 66 + })