nixpkgs/pkgs/by-name/wi/wineasio/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

54 lines
1.3 KiB
Nix

{ multiStdenv
, lib
, fetchFromGitHub
, libjack2
, pkg-config
, wineWowPackages
, pkgsi686Linux
}:
multiStdenv.mkDerivation rec {
pname = "wineasio";
version = "1.2.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-d5BGJAkaM5XZXyqm6K/UzFE4sD6QVHHGnLi1bcHxiaM=";
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/wineasio32.dll $out/lib/wine/i386-windows/wineasio32.dll
install -D build32/wineasio32.dll.so $out/lib/wine/i386-unix/wineasio32.dll.so
install -D build64/wineasio64.dll $out/lib/wine/x86_64-windows/wineasio64.dll
install -D build64/wineasio64.dll.so $out/lib/wine/x86_64-unix/wineasio64.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;
};
}