!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org143 Servers

Load older messages


SenderMessageTime
11 May 2025
@hellwolf:matrix.orghellwolfhow do I apply to all dependencies automatically?21:04:19
@hellwolf:matrix.orghellwolfI guess doing a map over "pkgs.haskell.packages.${ghcId}" setting "donCheck = true" would be an overkill?21:21:41
@weethet:catgirl.cloudWeetHet @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? 21:22:30
@weethet:catgirl.cloudWeetHet
In reply to @hellwolf:matrix.org
I guess doing a map over "pkgs.haskell.packages.${ghcId}" setting "donCheck = true" would be an overkill?
mkDerivation = args: hprev.mkDerivation ({ doCheck = false; } // args
21:26:03
@weethet:catgirl.cloudWeetHet This is what I've done, I don't like it but it works 21:26:26
@hellwolf:matrix.orghellwolfyikes :)21:29:48
@hellwolf:matrix.orghellwolfbut 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.21:30:41
@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

Show newer messages


Back to Room ListRoom Version: 6