Skip to content

haskellPackages: remove myself as maintainer from reflex-frp and obsidian packages - #477850

Merged
wolfgangwalther merged 2 commits into
NixOS:haskell-updatesfrom
alexfmpe:abandon-reflex
Jan 8, 2026
Merged

wolfgangwalther merged 2 commits into
NixOS:haskell-updatesfrom
alexfmpe:abandon-reflex

Conversation

@alexfmpe

@alexfmpe alexfmpe commented Jan 7, 2026

Copy link
Copy Markdown
Member

Life is too short for un-cooperative upstreams

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: haskell General-purpose, statically typed, purely functional programming language labels Jan 7, 2026
@wolfgangwalther

Copy link
Copy Markdown
Contributor

Please run maintainers/scripts/haskell/regenerate-hackage-packages.sh to reflect these changes in the big file.

@alexfmpe

alexfmpe commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

Oops, lost that habit. Done

@alexfmpe

alexfmpe commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

Hmmm, treefmt doesn't like... the entire file?

@wolfgangwalther

Copy link
Copy Markdown
Contributor

You probably didn't run the script from within a nix-shell, where treefmt was available. Thus, you ended up with an unformatted result - also see the huge diff you have in the PR now. The script probably errored, when trying to call treefmt instead of succeeding.

@alexfmpe

alexfmpe commented Jan 8, 2026 •

Copy link
Copy Markdown
Member Author

The script probably errored, when trying to call treefmt instead of succeeding.

Confirmed, running it again and looking more carefully I see
./maintainers/scripts/haskell/regenerate-hackage-packages.sh: line 105: nixfmt: command not found

You probably didn't run the script from within a nix-shell, where treefmt was available.

Hmm then should it be present in the shebang?

#! /usr/bin/env nix-shell
#! nix-shell -i bash -p coreutils haskellPackages.cabal2nix-unstable.bin git -I nixpkgs=.

@wolfgangwalther

Copy link
Copy Markdown
Contributor

Hmm then should it be present in the shebang?

No, nixfmt / treefmt are not in the shebang on purpose, because they would (potentially) not get the right configuration along, because that's only available via treefmt in nix-shell. There have been some PRs removing all these from the shebangs, with discussion about it, if you want to know more.

The expectation is, that you run these things from inside a nix-shell session in nixpkgs.

@wolfgangwalther
wolfgangwalther added this pull request to the merge queue Jan 8, 2026
Merged via the queue into NixOS:haskell-updates with commit 1a4b27a Jan 8, 2026
@sternenseemann

Copy link
Copy Markdown
Member

It is a usability pitfall, I have to admit. Maybe we should load them on demand if they aren't in PATH…

@wolfgangwalther

Copy link
Copy Markdown
Contributor

For this specific case, I think a clear error message would have helped. Something that checks whether nixfmt is available in PATH at the beginning of the script and if it's not just error out with an explanation of what to do (run nix-shell).

@alexfmpe
alexfmpe deleted the abandon-reflex branch January 31, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants