mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 09:23:37 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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;
|
|
};
|
|
}
|