2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, perl
|
2024-01-25 14:12:00 +00:00
|
|
|
, curl
|
2021-12-19 01:06:50 +00:00
|
|
|
, libpng
|
|
|
|
, giflib
|
|
|
|
, alsa-lib
|
|
|
|
, readline
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, pkg-config
|
2023-10-09 19:29:22 +00:00
|
|
|
, gtk3
|
|
|
|
, glew
|
2021-12-19 01:06:50 +00:00
|
|
|
, SDL
|
|
|
|
, SDL_image
|
|
|
|
, dos2unix
|
2023-10-09 19:29:22 +00:00
|
|
|
, runtimeShell
|
2021-12-19 01:06:50 +00:00
|
|
|
, xa
|
|
|
|
, file
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-10-09 19:29:22 +00:00
|
|
|
, xdg-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "vice";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "mirror://sourceforge/vice-emu/vice-${version}.tar.gz";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-HX3E0PK7zCqHG7lU/0pd9jBI3qnBb18em8gmD6QaEAQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
dos2unix
|
|
|
|
file
|
|
|
|
flex
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
2024-01-25 14:12:00 +00:00
|
|
|
curl
|
2021-12-19 01:06:50 +00:00
|
|
|
giflib
|
2023-10-09 19:29:22 +00:00
|
|
|
gtk3
|
|
|
|
glew
|
2021-12-19 01:06:50 +00:00
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libpng
|
|
|
|
perl
|
|
|
|
readline
|
|
|
|
SDL
|
|
|
|
SDL_image
|
|
|
|
xa
|
2023-10-09 19:29:22 +00:00
|
|
|
xdg-utils
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
dontDisableStatic = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
configureFlags = [ "--enable-sdl2ui" "--enable-gtk3ui" "--enable-desktop-files" "--disable-pdf-docs" "--with-gif" ];
|
|
|
|
|
|
|
|
LIBS = "-lGL";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
sed -i -e 's|#!/usr/bin/env bash|${runtimeShell}/bin/bash|' src/arch/gtk3/novte/box_drawing_generate.sh
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp src/arch/gtk3/data/unix/vice-org-*.desktop $out/share/applications
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Emulators for a variety of 8-bit Commodore computers";
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://vice-emu.sourceforge.io/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|