nixpkgs/pkgs/by-name/xc/xcpc/package.nix
Michael Daniels 82e60e51dd xcpc: 20070122 -> 0.52.1
Changelog: https://github.com/ponceto/xcpc-emulator/blob/xcpc-0.52.1/ChangeLog

The versioning scheme changed too: this version was released 2024-09-08.

Per https://www.xcpc-emulator.net/download.html, it seems sourceforge is no
longer used. So I chose the github mirror (arbitrarily).
2025-06-12 12:31:58 -04:00

51 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
autoreconfHook,
autoconf-archive,
pkg-config,
wrapGAppsHook3,
libepoxy,
}:
stdenv.mkDerivation rec {
version = "0.52.1";
pname = "xcpc";
src = fetchFromGitHub {
owner = "ponceto";
repo = "xcpc-emulator";
rev = "xcpc-${version}";
hash = "sha256-N4UfnCbebaAhx0490niMov/JqlrXt5goblWbW0ajkcc=";
};
nativeBuildInputs = [
autoreconfHook
autoconf-archive
wrapGAppsHook3
pkg-config
];
buildInputs = [ libepoxy ];
passthru.updateScript = nix-update-script { };
postInstall = ''
substituteInPlace $out/share/applications/xcpc.desktop --replace-fail \
"$out/bin/" ""
substituteInPlace $out/share/applications/xcpc.desktop --replace-fail \
"$out/share/pixmaps/" ""
'';
meta = with lib; {
description = "Portable Amstrad CPC 464/664/6128 emulator written in C";
homepage = "https://www.xcpc-emulator.net";
license = licenses.gpl2Plus;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "xcpc";
};
}