Files
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

29 lines
503 B
Nix

{
mkDerivation,
base,
containers,
lib,
}:
mkDerivation {
pname = "ghc-settings-edit";
version = "0.1.0";
src = builtins.path {
path = ./.;
name = "source";
filter = path: _: (baseNameOf path) != "default.nix";
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base
containers
];
license = [
lib.licenses.mit
lib.licenses.bsd3
];
description = "Tool for editing GHC's settings file";
mainProgram = "ghc-settings-edit";
}