nixpkgs/pkgs/applications/emulators/yapesdl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
945 B
Nix
Raw Normal View History

2021-04-09 20:30:49 +02:00
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, SDL2
}:
2023-04-16 22:09:42 +02:00
stdenv.mkDerivation (finalAttrs: {
2021-04-09 20:30:49 +02:00
pname = "yapesdl";
2023-03-01 04:19:46 +01:00
version = "0.71.2";
2021-04-09 20:30:49 +02:00
src = fetchFromGitHub {
owner = "calmopyrin";
2023-03-01 04:19:46 +01:00
repo = "yapesdl";
2023-04-16 22:09:42 +02:00
rev = "v${finalAttrs.version}";
2023-03-01 04:19:46 +01:00
hash = "sha256-QGF3aS/YSzdGxHONKyA/iTewEVYsjBAsKARVMXkFV2k=";
2021-04-09 20:30:49 +02:00
};
nativeBuildInputs = [
pkg-config
];
2023-03-01 04:19:46 +01:00
2021-04-09 20:30:49 +02:00
buildInputs = [
SDL2
];
2021-05-18 18:39:15 +02:00
makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
2021-04-09 20:30:49 +02:00
installPhase = ''
runHook preInstall
2023-03-01 04:19:46 +01:00
install -Dm755 yapesdl -t $out/bin/
install -Dm755 README.SDL -t $out/share/doc/yapesdl/
2021-04-09 20:30:49 +02:00
runHook postInstall
'';
2023-03-01 04:19:46 +01:00
meta = {
2021-04-09 20:30:49 +02:00
homepage = "http://yape.plus4.net/";
description = "Multiplatform Commodore 64 and 264 family emulator";
2023-03-01 04:19:46 +01:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
2023-03-03 02:38:15 +01:00
broken = stdenv.isDarwin;
2024-02-11 03:19:15 +01:00
mainProgram = "yapesdl";
2021-04-09 20:30:49 +02:00
};
2023-03-01 04:19:46 +01:00
})