Files
nixpkgs/pkgs/top-level/factor-packages.nix
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
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
2025-10-04 19:02:37 +02:00

45 lines
1.3 KiB
Nix

{
lib,
pkgs,
factor-unwrapped,
overrides ? (self: super: { }),
}:
let
inside =
self:
let
callPackage = pkgs.newScope self;
in
lib.recurseIntoAttrs {
buildFactorApplication =
callPackage ../development/compilers/factor-lang/mk-factor-application.nix
{ };
buildFactorVocab = callPackage ../development/compilers/factor-lang/mk-vocab.nix { };
inherit factor-unwrapped;
factor-lang = callPackage ../development/compilers/factor-lang/wrapper.nix { };
factor-no-gui = callPackage ../development/compilers/factor-lang/wrapper.nix {
guiSupport = false;
};
factor-minimal = callPackage ../development/compilers/factor-lang/wrapper.nix {
enableDefaults = false;
guiSupport = false;
};
factor-minimal-gui = callPackage ../development/compilers/factor-lang/wrapper.nix {
enableDefaults = false;
};
# Vocabularies
bresenham = callPackage ../development/factor-vocabs/bresenham { };
}
// lib.optionalAttrs pkgs.config.allowAliases {
interpreter = throw "factorPackages now offers various wrapped factor runtimes (see documentation) and the buildFactorApplication helper.";
};
extensible-self = lib.makeExtensible (lib.extends overrides inside);
in
extensible-self