pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / compilers / bfc / default.nix
blob660f130225c8565a36edc25c5762abfa5cc45cd0
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , llvmPackages_13
5 , libxml2
6 , ncurses
7 , zlib
8 , stdenv
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "bfc";
13   version = "1.12.0";
15   src = fetchFromGitHub {
16     owner = "Wilfred";
17     repo = "bfc";
18     rev = version;
19     hash = "sha256-5pcvwCtXWEexvV3TS62dZ6Opg8ANP2L8B0Z8u/OQENU=";
20   };
22   cargoHash = "sha256-1w/jPBO1TZpa0ju+O/NxQ/oMyzIvYVoXpj+ZLcIpQoU=";
24   buildInputs = [
25     libxml2
26     ncurses
27     zlib
28   ];
30   env.LLVM_SYS_130_PREFIX = llvmPackages_13.llvm.dev;
32   # process didn't exit successfully: <...> SIGSEGV
33   doCheck = false;
35   meta = with lib; {
36     description = "Industrial-grade brainfuck compiler";
37     mainProgram = "bfc";
38     homepage = "https://bfc.wilfred.me.uk";
39     license = licenses.gpl2Plus;
40     maintainers = with maintainers; [ figsoda ];
41     broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux;
42   };