mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
43 lines
990 B
Nix
43 lines
990 B
Nix
{ stdenv, fetchurl, pkgconfig, freeglut, libGLU_combined, libcdio, libjack2
|
|
, libsamplerate, libsndfile, libX11, SDL, SDL_net, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mednafen";
|
|
version = "0.9.48";
|
|
|
|
src = fetchurl {
|
|
url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
|
|
sha256 = "00i12mywhp43274aq466fwavglk5b7d8z8bfdna12ra9iy1hrk6k";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [
|
|
freeglut
|
|
libGLU_combined
|
|
libcdio
|
|
libjack2
|
|
libsamplerate
|
|
libsndfile
|
|
libX11
|
|
SDL
|
|
SDL_net
|
|
zlib
|
|
];
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/doc
|
|
mv Documentation $out/share/doc/mednafen
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
|
homepage = https://mednafen.github.io/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|