diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-09-12 22:46:25 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 22:46:25 -0300 |
commit | 8083ecaf9b175c56c2c30e173829d0ae032f914c (patch) | |
tree | 539e41e7de9dd481a3445d40ea25777f01f58f81 /pkgs/applications/emulators | |
parent | 1784464b31c46ab417a2a8b250873abdc7087083 (diff) | |
parent | 141acc16dc907ab426d26a93672cd734734d449c (diff) |
Merge pull request #190961 from lovesegfault/wineasio
wineasio: init at 1.1.0
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r-- | pkgs/applications/emulators/wineasio/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/wineasio/default.nix b/pkgs/applications/emulators/wineasio/default.nix new file mode 100644 index 0000000000000..5a47111610d1c --- /dev/null +++ b/pkgs/applications/emulators/wineasio/default.nix @@ -0,0 +1,53 @@ +{ multiStdenv +, lib +, fetchFromGitHub +, libjack2 +, pkg-config +, wineWowPackages +, pkgsi686Linux +}: + +multiStdenv.mkDerivation rec { + pname = "wineasio"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + hash = "sha256-HEnJj9yfXe+NQuPATMpPvseFs+3TkiMLd1L+fIfQd+o="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ pkg-config wineWowPackages.stable ]; + + buildInputs = [ pkgsi686Linux.libjack2 libjack2 ]; + + dontConfigure = true; + + makeFlags = [ "PREFIX=${wineWowPackages.stable}" ]; + + buildPhase = '' + runHook preBuild + make "''${makeFlags[@]}" 32 + make "''${makeFlags[@]}" 64 + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + install -D build32/wineasio.dll $out/lib/wine/i386-windows/wineasio.dll + install -D build32/wineasio.dll.so $out/lib/wine/i386-unix/wineasio.dll.so + install -D build64/wineasio.dll $out/lib/wine/x86_64-windows/wineasio.dll + install -D build64/wineasio.dll.so $out/lib/wine/x86_64-unix/wineasio.dll.so + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/wineasio/wineasio"; + description = "ASIO to JACK driver for WINE"; + license = with licenses; [ gpl2 lgpl21 ]; + maintainers = with maintainers; [ lovesegfault ]; + platforms = platforms.linux; + }; +} |