7 , features ? [ "default" ]
11 rustPlatform.buildRustPackage rec {
16 inherit pname version;
17 hash = "sha256-wPnMJDx3aF1Slx5pjLfii366pgNU3FJBdznQLuUboYA=";
20 cargoHash = "sha256-Xk+iH90Nb2koCdGmVSiRl8Nq26LlFdJBuKmvcbgnkgs=";
22 buildInputs = [ libxml2 ncurses zlib ];
24 buildNoDefaultFeatures = true;
25 buildFeatures = features;
27 preBuild = lib.optionalString (lib.elem "default" features || lib.elem "llvm_backend" features) ''
28 export LLVM_SYS_120_PREFIX=${llvmPackages_12.llvm.dev}
29 '' + lib.optionalString (lib.elem "default" features || lib.elem "unstable" features) ''
30 export RUSTC_BOOTSTRAP=1
33 # depends on cpu instructions that may not be available on builders
37 description = "Small programming language for writing short programs processing textual data";
38 mainProgram = "frawk";
39 homepage = "https://github.com/ezrosent/frawk";
40 changelog = "https://github.com/ezrosent/frawk/releases/tag/v${version}";
41 license = with licenses; [ mit /* or */ asl20 ];
42 maintainers = with maintainers; [ figsoda ];