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

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

44 lines
892 B
Nix
Raw Normal View History

2021-04-09 20:30:49 +02:00
{ 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
];
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
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;
};
}