depot/third_party/nixpkgs/pkgs/development/compilers/bfc/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, llvmPackages_13
, libxml2
, ncurses
, zlib
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "bfc";
version = "1.12.0";
src = fetchFromGitHub {
owner = "Wilfred";
repo = "bfc";
rev = version;
hash = "sha256-5pcvwCtXWEexvV3TS62dZ6Opg8ANP2L8B0Z8u/OQENU=";
};
cargoHash = "sha256-1w/jPBO1TZpa0ju+O/NxQ/oMyzIvYVoXpj+ZLcIpQoU=";
buildInputs = [
libxml2
ncurses
zlib
];
env = {
LLVM_SYS_130_PREFIX = llvmPackages_13.llvm.dev;
} // lib.optionalAttrs stdenv.cc.isClang {
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
# 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;
};
}