<ocharles>
Ok, cool. We do things a bit differently - we use a mono repo and have one jobset per branch that builds everything
<ocharles>
But I'll have a look around
<angerman>
I'm not going to open that can of worms. I do tools, developers do haskell :D
<ocharles>
:D
<ocharles>
What's the correct way to disable optimisations for a package? Specify it in my `cabal.project`?
<ocharles>
Though weirdly I have `optimization: False` in my `cabal.project` but everything is build with optimisations so I have a feeling that's not respected
<angerman>
ocharles: if it doesn't trickle down into the plan.json, haskell.nix won't see it. It might not be respected (or might not have been in the plan.json) when we looked for what we can extract.
<ocharles>
got it
<angerman>
isn't optimization: False, equivalent to passing -O0?
<ocharles>
I think so
<ocharles>
`The option `packages.cryptonite-openssl.package.identifier.name' is used but not defined` -- any idea what this could be about?
<ocharles>
Looks like an indirect dependency - there's no mention of `cryptonite-openssl` anywhere in this repo
<ocharles>
`pkgs.haskell-nix.haskellLib.collectComponents "exes" (p: p.identifier.name == "circuithub-api") pkgs.haskell;` is the expression that causes this to happen
<ocharles>
Yea, so collectComponents looks at _every_ package in hsPkgs, and I guess there's something wrong with cryptonite-openssl for some reason
tchouri has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
<ocharles>
I'm finding an executable that uses `hmatrix` reports `libopenblas.so.0 => /nix/store/rzcnnp4q8g4acg74kq38qndng1l65vw3-openblas-0.3.7/lib/libopenblas.so.0` when ran with ldd
<ocharles>
And nix-build -E '(import ./nix/pkgs {}).openblasCompat' -> /nix/store/py9w4nc0zzhxawly2dfz65dksphgrys6-openblas-0.3.7
<ocharles>
But nix-build -E '(import ./nix/pkgs {}).openblas' -> /nix/store/rzcnnp4q8g4acg74kq38qndng1l65vw3-openblas-0.3.7
<ocharles>
This pkgconf-nixpkgs-map.nix seems to be used in a pkgconfPkgs variable, but I can't even see how that is used :/
<ocharles>
I also tried an overlay with `openblas = super.openblasCompat`, but that just causes infinite recursion :'(
fendor has quit [Remote host closed the connection]
julm has quit [Ping timeout: 258 seconds]
julm has joined #haskell.nix
<ocharles>
Ok, I see now that this is passed into the expressions produced by cabal-to-nix, but for hmatrix it doesn't use pkgconfPkgs, so something is wrong in that translation. The plot thickens!
<ocharles>
Aha, it uses extra-libraries, not pkgconfig-depends
<ocharles>
But there is no mapping for extra-libraries
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 244 seconds]
mariatsji has joined #haskell.nix
<ocharles>
Me again. We build everything with ghc8101, but how would I get a HLint with this compiler? haskell-nix.haskellPackages.hlint.components.exes.hlint needs ghc 8.6 it seems
<ocharles>
But if I build a project, the resulting hsPkgs doesn't have hlint at all (presumably because it's not in the plan)