depot/third_party/nixpkgs/pkgs/misc/emulators/yapesdl/default.nix
Default email 1a0302a145 Project import generated by Copybara.
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
2021-04-12 20:23:04 +02:00

41 lines
838 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
];
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;
};
}