c8d4dabc43
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
23 lines
392 B
Nix
23 lines
392 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
ocaml_gettext,
|
|
dune-configurator,
|
|
ounit2,
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "gettext-stub";
|
|
inherit (ocaml_gettext) src version;
|
|
|
|
minimalOCamlVersion = "4.14";
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [ ocaml_gettext ];
|
|
|
|
doCheck = true;
|
|
checkInputs = [ ounit2 ];
|
|
|
|
meta = removeAttrs ocaml_gettext.meta [ "mainProgram" ];
|
|
}
|