Skip to content

cabal-gild: add top-level attribute, add tfausak as maintainer - #579257

Open
tfausak wants to merge 3 commits into
NixOS:masterfrom
tfausak:2026-10-26-cabal-gild
Open

tfausak wants to merge 3 commits into
NixOS:masterfrom
tfausak:2026-10-26-cabal-gild

Conversation

@tfausak

@tfausak tfausak commented Oct 26, 2026 •

Copy link
Copy Markdown

I'm the author of Cabal Gild. This PR adds me as a maintainer alongside @turion (from #299962) and adds cabal-gild as a top-level attribute.

Assisted-by: Claude Code (Claude Opus 5.5) was used to research how Haskell packages are exposed in nixpkgs and draft the commits. I reviewed all changes and built cabal-gild locally on aarch64-darwin.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! 6.topic: haskell General-purpose, statically typed, purely functional programming language 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Oct 26, 2026
@tfausak
tfausak force-pushed the 2026-10-26-cabal-gild branch from 0d14fa6 to 3571659 Compare October 26, 2026 15:04
@nixpkgs-ci nixpkgs-ci Bot added the llm-assisted Contributions that include code generation with LLMs label Oct 26, 2026
@tfausak
tfausak marked this pull request as ready for review October 26, 2026 15:11
@wolfgangwalther
wolfgangwalther removed their request for review October 29, 2026 07:36
@nixpkgs-ci
nixpkgs-ci Bot requested a review from wolfgangwalther October 29, 2026 07:41
@wolfgangwalther
wolfgangwalther removed their request for review October 29, 2026 07:42
@nixpkgs-ci
nixpkgs-ci Bot requested a review from wolfgangwalther October 29, 2026 07:51

@turion turion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that you want to add it! (And thanks for your work on it btw.) If possible, let's simplify it to a oneliner.

Comment thread pkgs/top-level/all-packages.nix Resolved
Comment thread pkgs/top-level/all-packages.nix Resolved
@sternenseemann

Copy link
Copy Markdown
Member

Please run ./maintainers/scripts/haskell/regenerate-hackage-packages.sh --fast from the top level of nixpkgs to reflect the maintainer changes in the main package set.

@tfausak
tfausak force-pushed the 2026-10-26-cabal-gild branch from 3571659 to 94f16cc Compare November 10, 2026 15:26
@tfausak

tfausak commented Nov 10, 2026

Copy link
Copy Markdown
Author

The regenerate-hackage-packages.sh script did not work for me on macOS. I manually applied the edits that I thought it would make.

@turion

turion commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

I ran regenerate-hackage-packages.sh on your PR, it had no changes in the places you edited:

❯ git diff

pkgs/development/haskell-modules/hackage-packages.nix
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

───────────────┐
18025: self: { │
───────────────┘
      description = "HFuse is a binding for the Linux FUSE library";
      license = lib.licenses.bsd3;
      platforms = lib.platforms.linux;
      hydraPlatforms = lib.platforms.none;
      broken = true;
    }
  ) { inherit (pkgs) fuse; };

────────────────┐
432844: self: { │
────────────────┘
      )
      {
        c10 = null;
        torch = null;
        inherit (pkgs) torch;
        torch_cpu = null;
      };


────────────────┐
446861: self: { │
────────────────┘
    {
      mkDerivation,
      base,
      lua5_4,
      lua,
      tasty,
      tasty-hunit,
    }:

────────────────┐
446874: self: { │
────────────────┘
        "-f-use-pkgconfig"
      ];
      libraryHaskellDepends = [ base ];
      librarySystemDepends = [ lua5_4 ];
      librarySystemDepends = [ lua ];
      testHaskellDepends = [
        base
        tasty

────────────────┐
446883: self: { │
────────────────┘
      description = "Lua, an embeddable scripting language";
      license = lib.meta.getLicenseFromSpdxId "MIT";
    }
  ) { inherit (pkgs) lua5_4; };
  ) { lua = null; };

  lua-arbitrary = callPackage (
    {

@turion
turion enabled auto-merge November 12, 2026 09:05
@turion

turion commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

I think I can't override the CI failure when trying to merge. Maybe it makes sense to merge into haskell-updates. Or we wait until the haskell builder is fixed and rebase.

auto-merge was automatically disabled November 12, 2026 16:59

Head branch was pushed to by a user without write access

@tfausak
tfausak force-pushed the 2026-10-26-cabal-gild branch from 94f16cc to d69c4ac Compare November 12, 2026 16:59
@tfausak

tfausak commented Nov 12, 2026

Copy link
Copy Markdown
Author

I re-added the overrides. I'm happy to remove them when they're no longer necessary. I'd prefer to avoid waiting for some big refactor of Haskell packages though.

@sternenseemann

Copy link
Copy Markdown
Member

This solution is strictly worse since using overrideAttrs makes later overrideCabal revert those changes which can be problematic.

@sternenseemann

Copy link
Copy Markdown
Member

@turion I thought commiters can ignore the check. Maybe you need to dismiss your old review first.

@tfausak

tfausak commented Nov 12, 2026

Copy link
Copy Markdown
Author

I'm happy to include the overrides or leave them out. I really don't care. It's a bit annoying to go back and forth like this.

using overrideAttrs makes later overrideCabal revert those changes

I am not a Nix person, but Claude tested overrideCabal and it seemed to work as expected:

haskell.lib.compose.overrideCabal (o: { doCheck = false; }) cabal-gild
# => strictDeps = true, __structuredAttrs = true, doCheck = false

Very possible that I'm missing something or misunderstood though.

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 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants