!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
11 May 2025
@maralorn:maralorn.demaralorn
In reply to @weethet:catgirl.cloud
@maralorn:maralorn.de re: packaging latest versions, would defining a package in by-name also work or will there be a conflict between the two?
Well, it is generally possible to package haskell packages in by-name. But it is unclear to me what that's supposed to solve.
21:34:50
@alexfmpe:matrix.orgalexfmpe
In reply to @hellwolf:matrix.org
but I realized it was largely my own fault of tracking ghc 9.12.2 already.. only package is broken without a cache is crypton, I will just apply a hack for that package alone.
Welcome to the early adopter life
21:39:26
@hellwolf:matrix.orghellwolf:p21:39:56
@alexfmpe:matrix.orgalexfmpeHere's another fun one21:40:00
@alexfmpe:matrix.orgalexfmpehttps://gitlab.haskell.org/ghc/ghc/-/issues/2593721:40:03
@alexfmpe:matrix.orgalexfmpeI'd be careful about using crypton in prod if test suite doesn't pass21:40:41
@alexfmpe:matrix.orgalexfmpeWell maybe it doesn't matter if it's for come cypher you don't use it?21:41:06
@alexfmpe:matrix.orgalexfmpe* Well maybe it doesn't matter if it's for some cypher you don't use it?21:41:17
@hellwolf:matrix.orghellwolfYea, I don't heavily use it.21:41:18
@hellwolf:matrix.orghellwolfonly a few small routine, non crytical 21:41:25
@hellwolf:matrix.orghellwolf* only a few small routine, non critical.21:41:29
@hellwolf:matrix.orghellwolf

Now that I got packages built, should I expect to have one single package.db that tracks all the dependencies, or I need to get those list myself...

I am asking because I handcraft such a cabal.project automatically for the projects using the my tool:

package-dbs: clear, global, ${cabal_package_db}, ${yolc_package_db}
21:42:25
@alexfmpe:matrix.orgalexfmpe
In reply to @weethet:catgirl.cloud
@maralorn:maralorn.de re: packaging latest versions, would defining a package in by-name also work or will there be a conflict between the two?
How is that different than just using the latest includes version? we bundle hackage latest alongside LTS version when they differ
21:42:30
@alexfmpe:matrix.orgalexfmpeself.foo = super.foo_1_2_321:43:00
@alexfmpe:matrix.orgalexfmpeThe 9.10 and 9.12 override files do a lot of this21:43:15
@hellwolf:matrix.orghellwolf

for individual package, I see:

  • package.conf.d
  • nix-support

these kinds of files.

sorry, for cross talking now.

21:43:58
@alexfmpe:matrix.orgalexfmpe
In reply to @hellwolf:matrix.org

Now that I got packages built, should I expect to have one single package.db that tracks all the dependencies, or I need to get those list myself...

I am asking because I handcraft such a cabal.project automatically for the projects using the my tool:

package-dbs: clear, global, ${cabal_package_db}, ${yolc_package_db}
I dunno about that file, but inside shellFor, my ghc-pkg list works as expected
21:44:15
@alexfmpe:matrix.orgalexfmpeOh cabal.project?21:44:31
@hellwolf:matrix.orghellwolfsimilar mechenism, I need to look into how shellFor is implemented.21:45:02
@hellwolf:matrix.orghellwolf* similar mechanism. I think I need to look into how shellFor is implemented.21:45:13
@alexfmpe:matrix.orgalexfmpeIt basically grabs the deps of the packages you ask to dev on and shoves them in the shell, alongside local hoogle setup if you asked for it 21:45:42
@hellwolf:matrix.orghellwolfI wonder if I should just brute force foldMap all propagated-build-inputs21:46:17
@hellwolf:matrix.orghellwolf* I wonder if I should just brute force foldMap all propagated-build-inputs into the generated cabal.project21:46:29
@alexfmpe:matrix.orgalexfmpeWhy do you need a generated cabal.project?21:46:47
@hellwolf:matrix.orghellwolfI can rebuild this wheel, but happy to learn also how to use the existing wheel.21:46:51
@alexfmpe:matrix.orgalexfmpeI usually just have packages: * enable-multi-repl: true21:47:17
@alexfmpe:matrix.orgalexfmpe* I usually just have packages: * multi-repl: True21:47:52
@hellwolf:matrix.orghellwolf

Good question...

Currently I try to wrap the developer experience in my own way:

  1. nix shell github:to/myproject
  2. mytool to/your/module
    a. this will create a temporary small stub project in build folder that use those packages from nix shell.
21:49:40
@hellwolf:matrix.orghellwolf *

Good question...

Currently I try to wrap the developer experience in my own way:

  1. nix shell github:to/myproject
  2. mytool to/your/module
    a. this will create a temporary tiny stub cabal project in build folder that use those packages from nix shell.
21:49:55
@hellwolf:matrix.orghellwolf *

Good question...

Currently I try to wrap the developer experience in my own way:

  1. nix shell github:to/myproject
  2. mytool to/your/module
    a. this will create a temporary tiny stub cabal project in the local build folder that uses:
    those packages from nix shell + your/module
21:50:51

Show newer messages


Back to Room ListRoom Version: 6