diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-15 23:28:16 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-16 01:38:20 -0300 |
commit | 8d65e832f0a18f60e2040940c80d96373ac8b88c (patch) | |
tree | 3d6ade66b2a81403e3852b80b9e7c660699b6ed6 /pkgs/applications/emulators/yapesdl | |
parent | 19574af0af3ffaf7c9e359744ed32556f34536bd (diff) | |
download | nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.gz nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.bz2 nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.lz nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.xz nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.zst nixlib-8d65e832f0a18f60e2040940c80d96373ac8b88c.zip |
Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
Diffstat (limited to 'pkgs/applications/emulators/yapesdl')
-rw-r--r-- | pkgs/applications/emulators/yapesdl/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/yapesdl/default.nix b/pkgs/applications/emulators/yapesdl/default.nix new file mode 100644 index 000000000000..5f4b7771fb5f --- /dev/null +++ b/pkgs/applications/emulators/yapesdl/default.nix @@ -0,0 +1,43 @@ +{ 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 + ]; + + makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ]; + + 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; + }; +} |