Files
nixpkgs/pkgs/by-name/os/oscar64/package.nix
2026-06-04 04:40:25 +00:00

47 lines
1.0 KiB
Nix

{
lib,
stdenv,
nix-update-script,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "oscar64";
version = "1.32.272";
src = fetchFromGitHub {
owner = "drmortalwombat";
repo = "oscar64";
tag = "v${finalAttrs.version}";
hash = "sha256-u27aEnEKhzgVERqrnKrooqvSWdF1kS4GunEopUSv0NA=";
};
postPatch = ''
substituteInPlace ./oscar64.1 \
--replace-fail "/usr/local/bin/oscar64" "$out/bin/oscar64" \
--replace-fail "/usr/local/share/oscar64/" "$out/include/oscar64"
'';
enableParallelBuilding = true;
makeFlags = [
"-C ./make"
"prefix=$(out)"
];
buildTarget = "compiler";
doCheck = true;
checkTarget = "check";
passthru.updateScript = nix-update-script { };
meta = {
description = "Optimizing small memory C compiler, assembler, and runtime for C64";
homepage = "https://github.com/drmortalwombat/oscar64";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.nekowinston ];
mainProgram = "oscar64";
platforms = lib.platforms.unix;
};
})