mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
896 B
Nix
44 lines
896 B
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;
|
|
|
|
# process didn't exit successfully: <...> SIGSEGV
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Industrial-grade brainfuck compiler";
|
|
mainProgram = "bfc";
|
|
homepage = "https://bfc.wilfred.me.uk";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux;
|
|
};
|
|
}
|