2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, llvmPackages_13
|
|
|
|
, libxml2
|
|
|
|
, ncurses
|
|
|
|
, zlib
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bfc";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.12.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Wilfred";
|
|
|
|
repo = "bfc";
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-5pcvwCtXWEexvV3TS62dZ6Opg8ANP2L8B0Z8u/OQENU=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-1w/jPBO1TZpa0ju+O/NxQ/oMyzIvYVoXpj+ZLcIpQoU=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
ncurses
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
env = {
|
|
|
|
LLVM_SYS_130_PREFIX = llvmPackages_13.llvm.dev;
|
|
|
|
};
|
|
|
|
|
|
|
|
# process didn't exit successfully: <...> SIGSEGV
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An industrial-grade brainfuck compiler";
|
|
|
|
homepage = "https://bfc.wilfred.me.uk";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
broken = stdenv.isAarch64 && stdenv.isLinux;
|
|
|
|
};
|
|
|
|
}
|