nixpkgs/pkgs/applications/emulators/vice/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
1.4 KiB
Nix
Raw Normal View History

2021-12-05 22:47:34 +00:00
{ lib
, stdenv
, fetchurl
, bison
, flex
, perl
, libpng
, giflib
, alsa-lib
, readline
, libGLU
, libGL
, pkg-config
, gtk3
, glew
2021-12-05 22:47:34 +00:00
, SDL
, SDL_image
, dos2unix
, runtimeShell
2021-12-05 22:47:34 +00:00
, xa
, file
, wrapGAppsHook
, xdg-utils
}:
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";
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=";
};
2021-12-05 22:47:34 +00:00
nativeBuildInputs = [
bison
dos2unix
file
flex
pkg-config
wrapGAppsHook
2021-12-05 22:47:34 +00:00
];
buildInputs = [
alsa-lib
giflib
gtk3
glew
2021-12-05 22:47:34 +00:00
libGL
libGLU
libpng
perl
readline
SDL
SDL_image
xa
xdg-utils
2021-12-05 22:47:34 +00:00
];
2017-09-10 13:37:26 +00:00
dontDisableStatic = true;
configureFlags = [ "--enable-sdl2ui" "--enable-gtk3ui" "--enable-desktop-files" "--disable-pdf-docs" "--with-gif" ];
LIBS = "-lGL";
2017-09-10 13:37:26 +00:00
preBuild = ''
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
'';
postInstall = ''
mkdir -p $out/share/applications
cp src/arch/gtk3/data/unix/vice-org-*.desktop $out/share/applications
'';
meta = {
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;
};
}