2021-12-05 22:47:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, perl
|
|
|
|
, libpng
|
|
|
|
, giflib
|
|
|
|
, alsa-lib
|
|
|
|
, readline
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, pkg-config
|
2023-10-05 17:33:17 +00:00
|
|
|
, gtk3
|
|
|
|
, glew
|
2021-12-05 22:47:34 +00:00
|
|
|
, SDL
|
|
|
|
, SDL_image
|
|
|
|
, dos2unix
|
2023-10-05 17:33:17 +00:00
|
|
|
, runtimeShell
|
2021-12-05 22:47:34 +00:00
|
|
|
, xa
|
|
|
|
, file
|
2023-10-05 17:33:17 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, xdg-utils
|
2009-05-28 19:22:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 21:00:21 +00:00
|
|
|
pname = "vice";
|
2023-09-22 16:26:44 +00:00
|
|
|
version = "3.7.1";
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 19:22:00 +00:00
|
|
|
src = fetchurl {
|
2021-08-12 21:00:21 +00:00
|
|
|
url = "mirror://sourceforge/vice-emu/vice-${version}.tar.gz";
|
2023-09-22 16:26:44 +00:00
|
|
|
sha256 = "sha256-fjgR5gJNsGmL+8MhuzJFckRriFPQG0Bz8JhllXsMq5g=";
|
2009-05-28 19:22:00 +00:00
|
|
|
};
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2021-12-05 22:47:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
dos2unix
|
|
|
|
file
|
|
|
|
flex
|
|
|
|
pkg-config
|
2023-10-05 17:33:17 +00:00
|
|
|
wrapGAppsHook
|
2021-12-05 22:47:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
giflib
|
2023-10-05 17:33:17 +00:00
|
|
|
gtk3
|
|
|
|
glew
|
2021-12-05 22:47:34 +00:00
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libpng
|
|
|
|
perl
|
|
|
|
readline
|
|
|
|
SDL
|
|
|
|
SDL_image
|
|
|
|
xa
|
2023-10-05 17:33:17 +00:00
|
|
|
xdg-utils
|
2021-12-05 22:47:34 +00:00
|
|
|
];
|
2017-09-10 13:37:26 +00:00
|
|
|
dontDisableStatic = true;
|
2023-10-05 17:33:17 +00:00
|
|
|
configureFlags = [ "--enable-sdl2ui" "--enable-gtk3ui" "--enable-desktop-files" "--disable-pdf-docs" "--with-gif" ];
|
|
|
|
|
|
|
|
LIBS = "-lGL";
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2017-09-10 13:37:26 +00:00
|
|
|
preBuild = ''
|
2023-10-05 17:33:17 +00:00
|
|
|
sed -i -e 's|#!/usr/bin/env bash|${runtimeShell}/bin/bash|' src/arch/gtk3/novte/box_drawing_generate.sh
|
2017-09-10 13:37:26 +00:00
|
|
|
'';
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 19:22:00 +00:00
|
|
|
postInstall = ''
|
2023-10-05 17:33:17 +00:00
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp src/arch/gtk3/data/unix/vice-org-*.desktop $out/share/applications
|
2009-05-28 19:22:00 +00:00
|
|
|
'';
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 19:22:00 +00:00
|
|
|
meta = {
|
2022-03-20 15:26:28 +00:00
|
|
|
description = "Emulators for a variety of 8-bit Commodore computers";
|
2021-12-05 22:47:34 +00:00
|
|
|
homepage = "https://vice-emu.sourceforge.io/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
platforms = lib.platforms.linux;
|
2009-05-28 19:22:00 +00:00
|
|
|
};
|
|
|
|
}
|