blob: 9b974c3eebe258a0306af3e1401204aadd388320 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
SDL2,
fetchFromGitHub,
pkg-config,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "yapesdl";
version = "0.80.1";
src = fetchFromGitHub {
owner = "calmopyrin";
repo = "yapesdl";
rev = "v${finalAttrs.version}";
hash = "sha256-VCjxdVatu1h6VNMkLYL8Nknwn7ax0J2OhO1bc7dnQRA=";
};
nativeBuildInputs = [
SDL2
pkg-config
];
buildInputs = [
SDL2
];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
outputs = [ "out" "doc" ];
strictDeps = true;
installPhase = ''
runHook preInstall
install -Dm755 yapesdl -t ''${!outputBin}/bin/
install -Dm755 README.SDL -t ''${!outputDoc}/share/doc/yapesdl/
runHook postInstall
'';
meta = {
homepage = "http://yape.plus4.net/";
description = "Multiplatform Commodore 64 and 264 family emulator";
changelog = "https://github.com/calmopyrin/yapesdl/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.gpl2Plus;
mainProgram = "yapesdl";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
})
|