Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.0 KiB
Nix
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";
|
|
};
|
|
}
|