mednafen: refactor
- finalAttrs - strictDeps
This commit is contained in:
parent
8ef2b87e00
commit
78fddb9988
1 changed files with 40 additions and 29 deletions
|
@ -1,33 +1,39 @@
|
||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, fetchurl
|
SDL2,
|
||||||
, SDL2
|
SDL2_net,
|
||||||
, SDL2_net
|
alsa-lib,
|
||||||
, alsa-lib
|
fetchurl,
|
||||||
, flac
|
flac,
|
||||||
, freeglut
|
freeglut,
|
||||||
, libGL
|
libGL,
|
||||||
, libGLU
|
libGLU,
|
||||||
, libX11
|
libX11,
|
||||||
, libcdio
|
libcdio,
|
||||||
, libjack2
|
libiconv,
|
||||||
, libsamplerate
|
libjack2,
|
||||||
, libsndfile
|
libsamplerate,
|
||||||
, pkg-config
|
libsndfile,
|
||||||
, zlib
|
pkg-config,
|
||||||
, libiconv
|
stdenv,
|
||||||
|
zlib,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "mednafen";
|
pname = "mednafen";
|
||||||
version = "1.29.0";
|
version = "1.29.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
|
url = "https://mednafen.github.io/releases/files/mednafen-${finalAttrs.version}.tar.xz";
|
||||||
hash = "sha256-2j+88Ch3+b4PAov6XRy1npU6QEm5D+fjk4ijOG2fNi4=";
|
hash = "sha256-2j+88Ch3+b4PAov6XRy1npU6QEm5D+fjk4ijOG2fNi4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
outputs = [ "out" "doc" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
SDL2
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2
|
||||||
|
@ -48,16 +54,21 @@ stdenv.mkDerivation rec {
|
||||||
libiconv
|
libiconv
|
||||||
];
|
];
|
||||||
|
|
||||||
hardeningDisable = [ "pic" "format" ];
|
hardeningDisable = [
|
||||||
|
"format"
|
||||||
|
"pic"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/doc
|
mkdir -p $doc/share/doc
|
||||||
mv Documentation $out/share/doc/mednafen
|
mv Documentation $doc/share/doc/mednafen
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://mednafen.github.io/";
|
homepage = "https://mednafen.github.io/";
|
||||||
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -91,9 +102,9 @@ stdenv.mkDerivation rec {
|
||||||
- Sega Saturn (experimental, x86_64 only)
|
- Sega Saturn (experimental, x86_64 only)
|
||||||
- Sony PlayStation
|
- Sony PlayStation
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
mainProgram = "mednafen";
|
mainProgram = "mednafen";
|
||||||
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue