Remove optional builtins prefixes from prelude functions by running:
builtins=(
abort
baseNameOf
break
derivation
derivationStrict
dirOf
false
fetchGit
fetchMercurial
fetchTarball
fetchTree
fromTOML
import
isNull
map
null
placeholder
removeAttrs
scopedImport
throw
toString
true
)
fd \
--type file \
. \
pkgs \
--exec-batch sed --in-place --regexp-extended "
s/\<builtins\.($(
printf '%s\n' "${builtins[@]}" |
paste --delimiter '|' --serial -
))\>/\1/g
"
nix fmt
26 lines
418 B
Nix
26 lines
418 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
ocaml_gettext,
|
|
camomile,
|
|
ounit2,
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "gettext-camomile";
|
|
inherit (ocaml_gettext) src version;
|
|
|
|
propagatedBuildInputs = [
|
|
camomile
|
|
ocaml_gettext
|
|
];
|
|
|
|
doCheck = true;
|
|
checkInputs = [ ounit2 ];
|
|
|
|
meta = (removeAttrs ocaml_gettext.meta [ "mainProgram" ]) // {
|
|
description = "Internationalization library using camomile (i18n)";
|
|
};
|
|
|
|
}
|