4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ mkDerivation, lib, stdenv, fetchurl, cmake, pkgconfig, qtbase, qt5, libGLU, libGL
|
|
, freeglut ? null, openal ? null, SDL2 ? null }:
|
|
|
|
mkDerivation rec {
|
|
pname = "yabause";
|
|
version = "0.9.15";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.tuxfamily.org/yabause/releases/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1cn2rjjb7d9pkr4g5bqz55vd4pzyb7hg94cfmixjkzzkw0zw8d23";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
buildInputs = [ qtbase qt5.qtmultimedia libGLU libGL freeglut openal SDL2 ];
|
|
|
|
patches = [
|
|
./linkage-rwx-linux-elf.patch
|
|
# Fixes derived from
|
|
# https://github.com/Yabause/yabause/commit/06a816c032c6f7fd79ced6e594dd4b33571a0e73
|
|
./0001-Fixes-for-Qt-5.11-upgrade.patch
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DYAB_NETWORK=ON"
|
|
"-DYAB_OPTIMIZED_DMA=ON"
|
|
"-DYAB_PORTS=qt"
|
|
] ;
|
|
|
|
meta = with lib; {
|
|
description = "An open-source Sega Saturn emulator";
|
|
homepage = "https://yabause.org/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|