nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 73 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 cairo, 5 cmake, 6 fetchFromGitHub, 7 ffmpeg_7, 8 gettext, 9 wxGTK32, 10 gtk3, 11 libGLU, 12 libGL, 13 openal, 14 pkg-config, 15 SDL2, 16 sfml_2, 17 zip, 18 zlib, 19 wrapGAppsHook3, 20 gsettings-desktop-schemas, 21}: 22 23stdenv.mkDerivation (finalAttrs: { 24 pname = "visualboyadvance-m"; 25 version = "2.2.3"; 26 src = fetchFromGitHub { 27 owner = "visualboyadvance-m"; 28 repo = "visualboyadvance-m"; 29 tag = "v${finalAttrs.version}"; 30 hash = "sha256-/yvwr3Of4aox4pOBwiC4gUzGsrPDwaFYPgJVivuOAvo="; 31 }; 32 33 nativeBuildInputs = [ 34 cmake 35 pkg-config 36 wrapGAppsHook3 37 ]; 38 39 buildInputs = [ 40 cairo 41 ffmpeg_7 42 gettext 43 libGLU 44 libGL 45 openal 46 SDL2 47 sfml_2 48 zip 49 zlib 50 wxGTK32 51 gtk3 52 gsettings-desktop-schemas 53 ]; 54 55 cmakeFlags = [ 56 (lib.cmakeBool "ENABLE_FFMPEG" true) 57 (lib.cmakeBool "ENABLE_LINK" true) 58 (lib.cmakeFeature "SYSCONFDIR" "etc") 59 (lib.cmakeBool "ENABLE_SDL" true) 60 ]; 61 62 meta = { 63 description = "Merge of the original Visual Boy Advance forks"; 64 license = lib.licenses.gpl2; 65 maintainers = with lib.maintainers; [ 66 lassulus 67 netali 68 ]; 69 homepage = "https://www.visualboyadvance-m.org/"; 70 platforms = lib.platforms.linux; 71 mainProgram = "visualboyadvance-m"; 72 }; 73})