mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
Merge pull request #192964 from figsoda/frawk
This commit is contained in:
commit
e08c848d08
43
pkgs/tools/text/frawk/default.nix
Normal file
43
pkgs/tools/text/frawk/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchCrate
|
||||
, libxml2
|
||||
, ncurses
|
||||
, zlib
|
||||
, features ? [ "default" ]
|
||||
, llvmPackages_12
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "frawk";
|
||||
version = "0.4.6";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-yEdfMikMcsQePxQL1+lma95O1x5z1B7aXAEf8apuGaU=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-osi77Fx8jSfIvAIpThgPbnuJVF/Ydr2/+ROHcDG5ZbA=";
|
||||
|
||||
buildInputs = [ libxml2 ncurses zlib ];
|
||||
|
||||
buildNoDefaultFeatures = true;
|
||||
buildFeatures = features;
|
||||
|
||||
preBuild = lib.optionalString (lib.elem "default" features || lib.elem "llvm_backend" features) ''
|
||||
export LLVM_SYS_120_PREFIX=${llvmPackages_12.llvm.dev}
|
||||
'' + lib.optionalString (lib.elem "default" features || lib.elem "unstable" features) ''
|
||||
export RUSTC_BOOTSTRAP=1
|
||||
'';
|
||||
|
||||
# depends on cpu instructions that may not be available on builders
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small programming language for writing short programs processing textual data";
|
||||
homepage = "https://github.com/ezrosent/frawk";
|
||||
license = with licenses; [ mit /* or */ asl20 ];
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
platforms = platforms.x86;
|
||||
};
|
||||
}
|
@ -3993,6 +3993,8 @@ with pkgs;
|
||||
|
||||
frangipanni = callPackage ../tools/text/frangipanni { };
|
||||
|
||||
frawk = callPackage ../tools/text/frawk { };
|
||||
|
||||
fselect = callPackage ../tools/misc/fselect { };
|
||||
|
||||
fsmon = callPackage ../tools/misc/fsmon { };
|
||||
|
Loading…
Reference in New Issue
Block a user