libretro: specify license per core

This commit is contained in:
DarkScythe97 2018-03-02 10:41:16 +10:30
parent 76a01ad9d1
commit e21aa3baef

View File

@ -7,7 +7,7 @@ let
d2u = stdenv.lib.replaceChars ["-"] ["_"]; d2u = stdenv.lib.replaceChars ["-"] ["_"];
mkLibRetroCore = ({ core, src, description, ... }@a: mkLibRetroCore = ({ core, src, description, license, ... }@a:
stdenv.lib.makeOverridable stdenv.mkDerivation rec { stdenv.lib.makeOverridable stdenv.mkDerivation rec {
name = "libretro-${core}-${version}"; name = "libretro-${core}-${version}";
@ -37,7 +37,7 @@ let
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit description; inherit description;
homepage = https://www.libretro.com/; homepage = https://www.libretro.com/;
license = licenses.gpl3Plus; inherit license;
maintainers = with maintainers; [ edwtjo hrdinka MP2E ]; maintainers = with maintainers; [ edwtjo hrdinka MP2E ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
@ -50,7 +50,7 @@ let
fetchSubmodules = true; fetchSubmodules = true;
}; };
in in with stdenv.lib.licenses;
{ {
@ -62,6 +62,7 @@ in
sha256 = "1n42f70vni2zavppayaq8xmsyx5cn40qi4zk4pgq1w3hh2q8mj72"; sha256 = "1n42f70vni2zavppayaq8xmsyx5cn40qi4zk4pgq1w3hh2q8mj72";
}; };
description = "Port of 4DO/libfreedo to libretro"; description = "Port of 4DO/libfreedo to libretro";
license = "Non-commercial";
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
}; };
@ -74,6 +75,7 @@ in
sha256 = "0p0k7kqfd6xg1qh6vgzgwp122miprb2bpzljgxd9kvigxihsl6f7"; sha256 = "0p0k7kqfd6xg1qh6vgzgwp122miprb2bpzljgxd9kvigxihsl6f7";
}; };
description = "Port of Mednafen's PC Engine core to libretro"; description = "Port of Mednafen's PC Engine core to libretro";
license = gpl2;
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
name = "beetle-pce-fast"; name = "beetle-pce-fast";
@ -87,6 +89,7 @@ in
sha256 = "1k4b7g50ajzchjrm6d3v68hvri4k3hzvacn2l99i5yq3hxp7vs7x"; sha256 = "1k4b7g50ajzchjrm6d3v68hvri4k3hzvacn2l99i5yq3hxp7vs7x";
}; };
description = "Port of Mednafen's PSX Engine core to libretro"; description = "Port of Mednafen's PSX Engine core to libretro";
license = gpl2;
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
name = "beetle-psx"; name = "beetle-psx";
@ -100,6 +103,7 @@ in
sha256 = "1d1brysynwr6inlwfgv7gwkl3i9mf4lsaxd9wm2szw86g4diyn4c"; sha256 = "1d1brysynwr6inlwfgv7gwkl3i9mf4lsaxd9wm2szw86g4diyn4c";
}; };
description = "Port of Mednafen's Saturn core to libretro"; description = "Port of Mednafen's Saturn core to libretro";
license = gpl2;
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
name = "beetle-saturn"; name = "beetle-saturn";
@ -114,6 +118,7 @@ in
sha256 = "0vkn1f38vwazpp3kbvvv8c467ghak6yfx00s48wkxwvhmak74a3s"; sha256 = "0vkn1f38vwazpp3kbvvv8c467ghak6yfx00s48wkxwvhmak74a3s";
}; };
description = "Fork of bsnes with HLE DSP emulation restored"; description = "Fork of bsnes with HLE DSP emulation restored";
license = gpl3;
}).override { }).override {
buildPhase = "make && cd out"; buildPhase = "make && cd out";
}; };
@ -126,6 +131,7 @@ in
sha256 = "064gzfbr7yizmvi91ry5y6bzikj633kdqhvzycb9f1g6kspf8yyl"; sha256 = "064gzfbr7yizmvi91ry5y6bzikj633kdqhvzycb9f1g6kspf8yyl";
}; };
description = "libretro wrapper for desmume NDS emulator"; description = "libretro wrapper for desmume NDS emulator";
license = gpl2;
}).override { }).override {
configurePhase = "cd desmume"; configurePhase = "cd desmume";
}; };
@ -138,6 +144,7 @@ in
sha256 = "1cshlfmhph8dl3vgvn37imvp2b7xs2cx1r1ifp5js5psvhycrbz3"; sha256 = "1cshlfmhph8dl3vgvn37imvp2b7xs2cx1r1ifp5js5psvhycrbz3";
}; };
description = "Port of Dolphin to libretro"; description = "Port of Dolphin to libretro";
license = gpl2Plus;
extraBuildInputs = [ extraBuildInputs = [
cmake curl mesa pcre pkgconfig sfml miniupnpc cmake curl mesa pcre pkgconfig sfml miniupnpc
@ -166,6 +173,7 @@ in
sha256 = "159dww8mxi95xz4ypw38vsn1g4k6z8sv415qqf0qriydwhw6mh2m"; sha256 = "159dww8mxi95xz4ypw38vsn1g4k6z8sv415qqf0qriydwhw6mh2m";
}; };
description = "Port of Final Burn Alpha to libretro"; description = "Port of Final Burn Alpha to libretro";
license = "Non-commercial";
}).override { }).override {
buildPhase = '' buildPhase = ''
cd svn-current/trunk \ cd svn-current/trunk \
@ -182,6 +190,7 @@ in
sha256 = "0jnwh1338q710x47bzrx319g5xbq9ipv35kyjlbkrzhqjq1blz0b"; sha256 = "0jnwh1338q710x47bzrx319g5xbq9ipv35kyjlbkrzhqjq1blz0b";
}; };
description = "FCEUmm libretro port"; description = "FCEUmm libretro port";
license = gpl2;
}; };
gambatte = mkLibRetroCore rec { gambatte = mkLibRetroCore rec {
@ -192,6 +201,7 @@ in
sha256 = "0h7hyj630nk1s32wx02y4q9x2lp6wbnh6nkc9ihf4pygcsignmwr"; sha256 = "0h7hyj630nk1s32wx02y4q9x2lp6wbnh6nkc9ihf4pygcsignmwr";
}; };
description = "Gambatte libretro port"; description = "Gambatte libretro port";
license = gpl2;
}; };
genesis-plus-gx = mkLibRetroCore rec { genesis-plus-gx = mkLibRetroCore rec {
@ -202,6 +212,7 @@ in
sha256 = "0s11ddpnb44q4xjkl7dylldhi9y5zqywqavpk0bbwyj84r1cbz3c"; sha256 = "0s11ddpnb44q4xjkl7dylldhi9y5zqywqavpk0bbwyj84r1cbz3c";
}; };
description = "Enhanced Genesis Plus libretro port"; description = "Enhanced Genesis Plus libretro port";
license = "Non-commercial";
}; };
mame = (mkLibRetroCore { mame = (mkLibRetroCore {
@ -212,6 +223,7 @@ in
sha256 = "0blfvq28hgv9kkpijd8c9d9sa5g2qr448clwi7wrj8kqfdnrr8m1"; sha256 = "0blfvq28hgv9kkpijd8c9d9sa5g2qr448clwi7wrj8kqfdnrr8m1";
}; };
description = "Port of MAME to libretro"; description = "Port of MAME to libretro";
license = gpl2Plus;
extraBuildInputs = [ alsaLib mesa portaudio python27 xorg.libX11 ]; extraBuildInputs = [ alsaLib mesa portaudio python27 xorg.libX11 ];
}).override { }).override {
@ -230,6 +242,7 @@ in
sha256 = "1b30sa861r4bhbqkx6vkklh4iy625bpzki2ks4ivvjns1ijczvc7"; sha256 = "1b30sa861r4bhbqkx6vkklh4iy625bpzki2ks4ivvjns1ijczvc7";
}; };
description = "Port of mGBA to libretro"; description = "Port of mGBA to libretro";
license = mpl20;
}; };
mupen64plus = (mkLibRetroCore rec { mupen64plus = (mkLibRetroCore rec {
@ -240,6 +253,7 @@ in
sha256 = "0q5kvjz7rpk7mp75cdywqjgmy10c0h7ky26hh1x90d39y94idcd8"; sha256 = "0q5kvjz7rpk7mp75cdywqjgmy10c0h7ky26hh1x90d39y94idcd8";
}; };
description = "Libretro port of Mupen64 Plus, GL only"; description = "Libretro port of Mupen64 Plus, GL only";
license = gpl2;
extraBuildInputs = [ mesa libpng ]; extraBuildInputs = [ mesa libpng ];
}).override { }).override {
@ -254,6 +268,7 @@ in
sha256 = "17ac7dhasch6f4lpill8c5scsvaix0jvbf1cp797qbll4hk84f2q"; sha256 = "17ac7dhasch6f4lpill8c5scsvaix0jvbf1cp797qbll4hk84f2q";
}; };
description = "nestopia undead libretro port"; description = "nestopia undead libretro port";
license = gpl2;
}).override { }).override {
buildPhase = "cd libretro && make"; buildPhase = "cd libretro && make";
}; };
@ -266,6 +281,7 @@ in
sha256 = "19396v50azrb52ifjk298zgcbxn8dvfvp6zwrnzsk6mp8ff7qcqw"; sha256 = "19396v50azrb52ifjk298zgcbxn8dvfvp6zwrnzsk6mp8ff7qcqw";
}; };
description = "Parallel Mupen64plus rewrite for libretro."; description = "Parallel Mupen64plus rewrite for libretro.";
license = gpl2;
extraBuildInputs = [ mesa libpng ]; extraBuildInputs = [ mesa libpng ];
}).override { }).override {
@ -280,6 +296,7 @@ in
sha256 = "0fl9r6jj2x9231md5zc4scra79j5hfn1n2z67scff1375xg1k64h"; sha256 = "0fl9r6jj2x9231md5zc4scra79j5hfn1n2z67scff1375xg1k64h";
}; };
description = "Fast MegaDrive/MegaCD/32X emulator"; description = "Fast MegaDrive/MegaCD/32X emulator";
license = "MAME";
extraBuildInputs = [ libpng SDL ]; extraBuildInputs = [ libpng SDL ];
}).override { }).override {
@ -295,6 +312,7 @@ in
sha256 = "06k1gzmypz61dslynrw4b5i161rhj43y6wnr2nhbzvwcv5bw8w8r"; sha256 = "06k1gzmypz61dslynrw4b5i161rhj43y6wnr2nhbzvwcv5bw8w8r";
}; };
description = "ppsspp libretro port"; description = "ppsspp libretro port";
license = gpl2;
extraBuildInputs = [ mesa ffmpeg ]; extraBuildInputs = [ mesa ffmpeg ];
}).override { }).override {
buildPhase = "cd libretro && make"; buildPhase = "cd libretro && make";
@ -308,6 +326,7 @@ in
sha256 = "02vkl3y5dmyzifsviphspqv03a2rdyf36zpjpgfg7x0s226f56ja"; sha256 = "02vkl3y5dmyzifsviphspqv03a2rdyf36zpjpgfg7x0s226f56ja";
}; };
description = "Prboom libretro port"; description = "Prboom libretro port";
license = gpl2;
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
}; };
@ -320,6 +339,7 @@ in
sha256 = "18lizdb9zjlfhh8ibvmcscldlf3mw4aj8nds3pah68cd2lw170w1"; sha256 = "18lizdb9zjlfhh8ibvmcscldlf3mw4aj8nds3pah68cd2lw170w1";
}; };
description = "QuickNES libretro port"; description = "QuickNES libretro port";
license = lgpl21Plus;
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
}; };
@ -332,6 +352,7 @@ in
sha256 = "0d8wzpv7pcyh437gmvi439vim26wyrjmi5hj97wvyvggywjwrx8m"; sha256 = "0d8wzpv7pcyh437gmvi439vim26wyrjmi5hj97wvyvggywjwrx8m";
}; };
description = "Reicast libretro port"; description = "Reicast libretro port";
license = gpl2;
extraBuildInputs = [ mesa ]; extraBuildInputs = [ mesa ];
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
@ -345,6 +366,7 @@ in
sha256 = "097i2dq3hw14hicsplrs36j1qa3r45vhzny5v4aw6qw4aj34hksy"; sha256 = "097i2dq3hw14hicsplrs36j1qa3r45vhzny5v4aw6qw4aj34hksy";
}; };
description = "Libretro port of ScummVM"; description = "Libretro port of ScummVM";
license = gpl2;
extraBuildInputs = [ fluidsynth libjpeg libvorbis mesa SDL ]; extraBuildInputs = [ fluidsynth libjpeg libvorbis mesa SDL ];
}).override { }).override {
buildPhase = "cd backends/platform/libretro/build && make"; buildPhase = "cd backends/platform/libretro/build && make";
@ -358,6 +380,7 @@ in
sha256 = "02f04ss45km32lp68diyfkix1gryx89qy8cc80189ipwnx80pgip"; sha256 = "02f04ss45km32lp68diyfkix1gryx89qy8cc80189ipwnx80pgip";
}; };
description = "Port of SNES9x git to libretro"; description = "Port of SNES9x git to libretro";
license = "Non-commercial";
}).override { }).override {
buildPhase = "cd libretro && make"; buildPhase = "cd libretro && make";
}; };
@ -370,6 +393,7 @@ in
sha256 = "1vhgsrg9l562nincfvpj2h2dqkkblg1qmh0v47jqlqgmgl2b1zij"; sha256 = "1vhgsrg9l562nincfvpj2h2dqkkblg1qmh0v47jqlqgmgl2b1zij";
}; };
description = "Optimized port/rewrite of SNES9x 1.52+ to Libretro"; description = "Optimized port/rewrite of SNES9x 1.52+ to Libretro";
license = "Non-commercial";
}).override { }).override {
buildPhase = '' buildPhase = ''
make -f Makefile.libretro make -f Makefile.libretro
@ -385,6 +409,7 @@ in
sha256 = "18r1yyfzvjq2hq04d94y37kzsq6aywh1aim69a3imk8kh46gwrh0"; sha256 = "18r1yyfzvjq2hq04d94y37kzsq6aywh1aim69a3imk8kh46gwrh0";
}; };
description = "Port of Stella to libretro"; description = "Port of Stella to libretro";
license = gpl2;
}).override { }).override {
buildPhase = "make"; buildPhase = "make";
}; };
@ -397,6 +422,7 @@ in
sha256 = "03s4rh7dbbhbfc4pfdvr9jcbxrp4ijg8yp49s1xhr7sxsblj2vpv"; sha256 = "03s4rh7dbbhbfc4pfdvr9jcbxrp4ijg8yp49s1xhr7sxsblj2vpv";
}; };
description = "VBA-M libretro port with modifications for speed"; description = "VBA-M libretro port with modifications for speed";
license = gpl2;
}; };
vba-m = (mkLibRetroCore rec { vba-m = (mkLibRetroCore rec {
@ -407,6 +433,7 @@ in
sha256 = "043djmqvh2grc25hwjw4b5kfx57b89ryp6fcl8v632sm35l3dd6z"; sha256 = "043djmqvh2grc25hwjw4b5kfx57b89ryp6fcl8v632sm35l3dd6z";
}; };
description = "vanilla VBA-M libretro port"; description = "vanilla VBA-M libretro port";
license = gpl2;
}).override { }).override {
buildPhase = "cd src/libretro && make"; buildPhase = "cd src/libretro && make";
}; };