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/mupen64plus | |
parent | 19574af0af3ffaf7c9e359744ed32556f34536bd (diff) | |
download | nixpkgs-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar nixpkgs-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.gz nixpkgs-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.bz2 nixpkgs-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.lz nixpkgs-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.xz nixpkgs-8d65e832f0a18f60e2040940c80d96373ac8b88c.tar.zst nixpkgs-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/mupen64plus')
-rw-r--r-- | pkgs/applications/emulators/mupen64plus/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/mupen64plus/default.nix b/pkgs/applications/emulators/mupen64plus/default.nix new file mode 100644 index 00000000000..f5d17d9d395 --- /dev/null +++ b/pkgs/applications/emulators/mupen64plus/default.nix @@ -0,0 +1,29 @@ +{lib, stdenv, fetchurl, boost, dash, freetype, libpng, pkg-config, SDL, which, zlib, nasm }: + +stdenv.mkDerivation rec { + pname = "mupen64plus"; + version = "2.5.9"; + + src = fetchurl { + url = "https://github.com/mupen64plus/mupen64plus-core/releases/download/${version}/mupen64plus-bundle-src-${version}.tar.gz"; + sha256 = "1a21n4gqdvag6krwcjm5bnyw5phrlxw6m0mk73jy53iq03f3s96m"; + }; + + nativeBuildInputs = [ pkg-config nasm ]; + buildInputs = [ boost dash freetype libpng SDL which zlib ]; + + buildPhase = '' + dash m64p_build.sh PREFIX="$out" COREDIR="$out/lib/" PLUGINDIR="$out/lib/mupen64plus" SHAREDIR="$out/share/mupen64plus" + ''; + installPhase = '' + dash m64p_install.sh DESTDIR="$out" PREFIX="" + ''; + + meta = with lib; { + description = "A Nintendo 64 Emulator"; + license = licenses.gpl2Plus; + homepage = "http://www.mupen64plus.org/"; + maintainers = [ maintainers.sander ]; + platforms = [ "x86_64-linux" ]; + }; +} |