!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

721 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/145 Servers

Load older messages


SenderMessageTime
7 Jan 2025
@maralorn:maralorn.demaralornReplace haskellPackages with haskell.packages.ghc9801:44:11
@raboof:matrix.orgraboof left the room.06:43:25
@joaomoreira:matrix.orgJoão Moreira maralorn: derivation built successfully! tested it and it's working! thank you very much! i might contribute it to nixpkgs 11:38:46
@immae:immae.eu@immae:immae.eu left the room.12:09:28
@alexfmpe:matrix.orgalexfmpeIf you put it on hackage it will eventually propagate to nixpkgs12:14:14
@alexfmpe:matrix.orgalexfmpeValeu!12:14:21
@hellwolf:matrix.orghellwolfhttps://discourse.haskell.org/t/please-contribute-to-the-ghc-9-10-breakage-inventory/9533/18?u=hellwolf I don't know if I was right to suggest that14:29:59
@sternenseemann:systemli.orgsterni (he/him)probably a good idea although we haven't seen a lot of fixes to 9.10 so far, so it's not comprehensive, really17:38:42
@sternenseemann:systemli.orgsterni (he/him)damn it's depressing seeing other people's overlays for e.g. 9.10 support that just never get contributed back upstream17:39:55
@sternenseemann:systemli.orgsterni (he/him)nixpkgs without overlays when 😵‍💫17:40:14
@alexfmpe:matrix.orgalexfmpeMan, the amount of .nix churn there was on the reflex/obsidian ecosystem 17:56:54
@alexfmpe:matrix.orgalexfmpeJust for CI17:56:59
@alexfmpe:matrix.orgalexfmpeImagine lazy evaluation as a task prioritization strategy 17:57:29
@alexfmpe:matrix.orgalexfmpeThat's what it looked like17:57:39
@alexfmpe:matrix.orgalexfmpeRoughly the same thing repeated in a dozen repos 17:58:21
@alexfmpe:matrix.orgalexfmpeIt wasn't even good for them, massive maintenance problem 17:58:54
@sigmasquadron:matrix.orgSigmaSquadron changed their display name from SigmaSquadron to SigmaSquadron (Away until 2024-01-12).19:35:35
8 Jan 2025
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.23:54:19
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.23:57:58
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.23:59:15
9 Jan 2025
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.00:03:47
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.00:08:30
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.00:20:37
@joaomoreira:matrix.orgJoão Moreira

how can I move, haskell.lib.compose.justStaticExecutables, haskell.packages.ghc910 etc from all-packages.nix to package.nix so that nixpkgs-vet job succesffully passes (i.e. fits pkgs/by-name)? I tried finding examples on nixpkgs, but they don't seem right / too complex for my derivation.

How it is now:

pkgs/top-level/all-packages.nix

  # Check kind-lang.cabal. GHC2024 >= ghc910.
  kind-lang = haskell.lib.compose.justStaticExecutables (haskell.packages.ghc910.callPackage ../by-name/ki/kind-lang/package.nix {
    haskellPackages = haskell.packages.ghc910;
  });

nixpkgs-vet error

- Because pkgs/by-name/ki/kind-lang exists, the attribute `pkgs.kind-lang` must be defined like

    kind-lang = callPackage ./../by-name/ki/kind-lang/package.nix { /* ... */ };

  However, in this PR, it isn't defined that way. See the definition in pkgs/top-level/all-packages.nix:6458

    kind-lang = haskell.lib.compose.justStaticExecutables (haskell.packages.ghc910.callPackage ../by-name/ki/kind-lang/package.nix {
      haskellPackages = haskell.packages.ghc910;
    });

This PR introduces the problems listed above. Please fix them before merging, otherwise the base branch would break.
To run locally: ./ci/nixpkgs-vet.sh master https://github.com/NixOS/nixpkgs.git
If you're having trouble, ping @NixOS/nixpkgs-vet
Error: Process completed with exit code 1.

pr https://github.com/NixOS/nixpkgs/pull/371934

11:56:35
@b:chreekat.netchreekat João Moreira: by-name/pr/pretty-simple/package.nix might be one place to find inspiration 12:15:58
@b:chreekat.netchreekatI grepped for 'haskellPackages' in by-name and tried to find something similar12:16:11
@me:linj.techlinj
In reply to @joaomoreira:matrix.org

how can I move, haskell.lib.compose.justStaticExecutables, haskell.packages.ghc910 etc from all-packages.nix to package.nix so that nixpkgs-vet job succesffully passes (i.e. fits pkgs/by-name)? I tried finding examples on nixpkgs, but they don't seem right / too complex for my derivation.

How it is now:

pkgs/top-level/all-packages.nix

  # Check kind-lang.cabal. GHC2024 >= ghc910.
  kind-lang = haskell.lib.compose.justStaticExecutables (haskell.packages.ghc910.callPackage ../by-name/ki/kind-lang/package.nix {
    haskellPackages = haskell.packages.ghc910;
  });

nixpkgs-vet error

- Because pkgs/by-name/ki/kind-lang exists, the attribute `pkgs.kind-lang` must be defined like

    kind-lang = callPackage ./../by-name/ki/kind-lang/package.nix { /* ... */ };

  However, in this PR, it isn't defined that way. See the definition in pkgs/top-level/all-packages.nix:6458

    kind-lang = haskell.lib.compose.justStaticExecutables (haskell.packages.ghc910.callPackage ../by-name/ki/kind-lang/package.nix {
      haskellPackages = haskell.packages.ghc910;
    });

This PR introduces the problems listed above. Please fix them before merging, otherwise the base branch would break.
To run locally: ./ci/nixpkgs-vet.sh master https://github.com/NixOS/nixpkgs.git
If you're having trouble, ping @NixOS/nixpkgs-vet
Error: Process completed with exit code 1.

pr https://github.com/NixOS/nixpkgs/pull/371934

another example is nixfmt-rfc-style
12:19:09
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.16:23:16
@feichtmeier:matrix.org@feichtmeier:matrix.org changed their profile picture.18:20:21
@alexfmpe:matrix.orgalexfmpeI'd like to fix eval/build for a few packages in ghc912, but am a bit confused by the current state the haskell-updates -> staging branch has conflicts on a bunch of configuration-foo.nix files?19:08:06

Show newer messages


Back to Room ListRoom Version: 6