mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
31 lines
1.0 KiB
Nix
31 lines
1.0 KiB
Nix
{ stdenv, lib, fetchzip, wxGTK32, coreutils, SDL2, openal, alsa-lib, pkg-config, gtk3, wrapGAppsHook3
|
|
, autoreconfHook, withNetworking ? true, withALSA ? true }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pcem";
|
|
version = "17";
|
|
|
|
src = fetchzip {
|
|
url = "https://pcem-emulator.co.uk/files/PCemV${version}Linux.tar.gz";
|
|
stripRoot = false;
|
|
sha256 = "067pbnc15h6a4pnnym82klr1w8qwfm6p0pkx93gx06wvwqsxvbdv";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook3 ];
|
|
buildInputs = [ wxGTK32 coreutils SDL2 openal gtk3 ]
|
|
++ lib.optional withALSA alsa-lib;
|
|
|
|
configureFlags = [ "--enable-release-build" ]
|
|
++ lib.optional withNetworking "--enable-networking"
|
|
++ lib.optional withALSA "--enable-alsa";
|
|
|
|
meta = with lib; {
|
|
description = "Emulator for IBM PC computers and clones";
|
|
mainProgram = "pcem";
|
|
homepage = "https://pcem-emulator.co.uk/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.terin ];
|
|
platforms = platforms.linux ++ platforms.windows;
|
|
};
|
|
}
|