fix accelerate, updating to git versions #27617
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request depends on #27615.
haskellPackages.accelerate
and its related packages are broken - somehow we'veended up with a split with
accelerate
(0.15.x) andaccelerate_1_0_0_0
. I don't really seeany reason to keep the old one around, but it's there at the moment.
These changes add functionality to pull the latest git versions of the
accelerate packages, which seems unfortunately necessary because the current
versions on hackage don't build against what we have packaged in NixOS.
Another change made is the addition of
callCabal2nixWithOpts
, which takesa set of options --- currently, the only one is to pass the
--subpath
flag tocabal2nix
(the main accelerate repo contains multiple cabal packages each ina different directory).
I also had to update
cuda
, and also reapply the same patches inconfiguration-nix
--- this is ugly, I'm sure there's a better way, but I don'tknow it.
Open to suggestions, but this is what I concluded as the 'path of least effort'
to getting accelerate working again.
Packages that are broken without this pr are things like
accelerate-examples
,accelerate-io
etc.Please check what applies. Note that these are not hard requirements but mereley serve as information for reviewers.
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)