Skip to content

Commit

Permalink
jackass: init at v0.2.3
Browse files Browse the repository at this point in the history
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
  • Loading branch information
PowerUser64 and drupol committed Aug 23, 2023
1 parent 0ffe9cc commit b27b85d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
64 changes: 64 additions & 0 deletions pkgs/applications/audio/jackass/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{ lib, stdenv, fetchFromGitHub, fetchzip, pkg-config, wine64, enableJackAssWine64 ? false }:

let
# equal to vst-sdk in ../oxefmsynth/default.nix
vst-sdk = stdenv.mkDerivation rec {
name = "vstsdk3610_11_06_2018_build_37";
src = fetchzip {
url = "https://web.archive.org/web/20181016150224if_/https://download.steinberg.net/sdk_downloads/${name}.zip";
hash = "sha256-cjYakxnqSDqSZ32FPK3OUhDpslOlavHh5SAVpng0QTU=";
};
installPhase = ''
cp -r . $out
'';
};

in
stdenv.mkDerivation (finalAttrs: {
pname = "jackass";
version = "1.1";

src = fetchFromGitHub {
owner = "falkTX";
repo = "JackAss";
rev = "v${finalAttrs.version}";
hash = "sha256-6mqG4H6iGvDbGnmMeP/vcvSnvUGClZUl06XpKovt50E=";
};

patchPhase = ''
cp -r ${vst-sdk}/VST2_SDK/{public.sdk,pluginterfaces} vstsdk2.4
'';

nativeBuildInputs = [ pkg-config ] ++ lib.optionals enableJackAssWine64 [ wine64 ];

makeFlags = [ "linux" ] ++ lib.optionals enableJackAssWine64 [ "wine64" ];

installPhase = ''
runHook preInstall
install_dir="$out/lib/vst"
mkdir -p $install_dir
for file in JackAss.so JackAssWine64.dll; do
if test -f "$file"; then
cp $file $install_dir
fi
done
runHook postInstall
'';

enableParallelBuilding = true;

meta = with lib; {
description = "JackAss is a VST plugin that provides JACK-MIDI support for VST hosts.";
longDescription = ''
Simply load the plugin in your favourite host to get a JACK-MIDI port.
Optionally includes a special Wine build for running in Wine
applications. Set enableJackAssWine64 to true to enable this output.
'';
homepage = "https://github.com/falkTX/JackAss";
maintainers = with maintainers; [ PowerUser64 ];
license = with licenses; [ mit unfree ];
platforms = platforms.linux;
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32285,6 +32285,8 @@ with pkgs;
gradle = gradle_7;
};

jackass = callPackage ../applications/audio/jackass { };

jack_capture = callPackage ../applications/audio/jack-capture { };

jack_oscrolloscope = callPackage ../applications/audio/jack-oscrolloscope { };
Expand Down

0 comments on commit b27b85d

Please sign in to comment.