Commit Graph

4 Commits

Author SHA1 Message Date
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
K900
98063255ff haskellPackages.ghc-settings-edit: avoid the use of filesets
This should be 0 rebuilds, except it fixes the installer tests, as
lib.filesets is somehow broken when combining chroot stores with
channel references (???).

Running nixosTests.installer.simple with this reverted will reproduce
the issue consistently.

CC @infinisil
2024-10-05 23:45:00 +03:00
sternenseemann
4888c3cd8b haskellPackages.ghc-settings-edit: build using Cabal
This allows us to reuse our existing infrastructure which alreday
contains workarounds for various issues. Prior to this,
ghc-settings-edit wouldn't compile with musl for some
reason.
2024-09-11 13:41:32 +02:00
sternenseemann
bd331dc379 ghc-settings-edit: init at 0.1.0 2024-09-08 23:50:05 +02:00