3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/emulators/yapesdl/default.nix
AndersonTorres 8d65e832f0 Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
2022-02-16 01:38:20 -03:00

44 lines
892 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, SDL2
}:
stdenv.mkDerivation rec {
pname = "yapesdl";
version = "0.70.2";
src = fetchFromGitHub {
owner = "calmopyrin";
repo = pname;
rev = "v${version}";
hash = "sha256-51P6wNaSfVA3twu+yRUKXguEmVBvuuEnHxH1Zl1vsCc=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
SDL2
];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
installPhase = ''
runHook preInstall
install --directory $out/bin $out/share/doc/$pname
install yapesdl $out/bin/
install README.SDL $out/share/doc/$pname/
runHook postInstall
'';
meta = with lib; {
homepage = "http://yape.plus4.net/";
description = "Multiplatform Commodore 64 and 264 family emulator";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}