Files
nixpkgs/pkgs/by-name/ni/nibtools/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
opencbm,
cc65,
}:
stdenv.mkDerivation {
pname = "nibtools";
version = "0-unstable-2024-11-30";
src = fetchFromGitHub {
owner = "OpenCBM";
repo = "nibtools";
rev = "91344e0ee357780a90ad7fe3a0a0721a2e11f265";
hash = "sha256-0skAavJe01b+4Z7LEfS2qIhqkwj8XhOwmflhYPEynw4=";
};
NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
nativeBuildInputs = [
cc65
];
buildInputs = [
opencbm
];
preBuild = "mkdir build";
makeFlags = [
"-f"
"GNU/Makefile"
"linux"
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv nibread nibwrite nibscan nibconv nibrepair nibsrqtest $out/bin/
runHook postInstall
'';
meta = {
description = "Disk transfer utility for imaging and converting commodore 64 disk images";
homepage = "https://github.com/OpenCBM/nibtools/";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ matthewcroughan ];
platforms = lib.platforms.all;
};
}