2023-06-01 00:25:16 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, llvmPackages_13
|
|
|
|
, libxml2
|
|
|
|
, ncurses
|
|
|
|
, zlib
|
2023-06-04 22:16:34 +02:00
|
|
|
, stdenv
|
2023-06-01 00:25:16 +02:00
|
|
|
}:
|
|
|
|
|
2023-06-15 14:51:19 +02:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-06-01 00:25:16 +02:00
|
|
|
pname = "bfc";
|
2023-09-18 02:36:00 +02:00
|
|
|
version = "1.12.0";
|
2023-06-01 00:25:16 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Wilfred";
|
|
|
|
repo = "bfc";
|
2023-06-15 14:51:19 +02:00
|
|
|
rev = version;
|
2023-09-18 02:36:00 +02:00
|
|
|
hash = "sha256-5pcvwCtXWEexvV3TS62dZ6Opg8ANP2L8B0Z8u/OQENU=";
|
2023-06-01 00:25:16 +02:00
|
|
|
};
|
|
|
|
|
2023-09-18 02:36:00 +02:00
|
|
|
cargoHash = "sha256-1w/jPBO1TZpa0ju+O/NxQ/oMyzIvYVoXpj+ZLcIpQoU=";
|
2023-06-01 00:25:16 +02: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 ];
|
2023-06-04 22:16:34 +02:00
|
|
|
broken = stdenv.isAarch64 && stdenv.isLinux;
|
2023-06-01 00:25:16 +02:00
|
|
|
};
|
|
|
|
}
|