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

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

45 lines
904 B
Nix
Raw Normal View History

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