Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octave packages documentation missing #65398

Closed
matthuszagh opened this issue Jul 25, 2019 · 12 comments
Closed

Octave packages documentation missing #65398

matthuszagh opened this issue Jul 25, 2019 · 12 comments

Comments

@matthuszagh
Copy link
Contributor

Has anyone worked on using Nix for octave package management? I'd like to get this working, but if there's previous work I can piggyback on that would be great. Any thoughts on what a good solution to this might look like? For instance, something like emacsWithPackages or pythonPackages.

@matthuszagh matthuszagh added the 0.kind: packaging request Request for a new package to be added label Jul 25, 2019
@FRidh
Copy link
Member

FRidh commented Jul 27, 2019

I suggest to indeed take a similar approach

  • create a store path per package
  • use octave-home/share/octave/site/m/startup/octaverc similar to how Python uses sitecustomize.py to introduce an env var to add to the search path using addpath
  • composition using a buildEnv function that utilizes that env var.

@doronbehar
Copy link
Contributor

That's certainly a nice idea. The popular octave package symbols for example requires some python libraries and they aren't loaded if octave doesn't have the correct PYTHONPATH in it's environment.

@stale

This comment has been minimized.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 8, 2020
@doronbehar
Copy link
Contributor

I'm planning to work on this with the upcoming Octave 6 release, along with other improvements to the derivation.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 8, 2020
@doronbehar
Copy link
Contributor

I had hopes that the Octave 6 release will come before my semester will start, but it didn't, and now I'm more then busy. I'll note here though that there are a few related PRs I'd like to get in, for the sake of improving the derivation in general:

Other then that, I experimented a bit with the idea of fetching all octave packages from octave forge and even fetching the dependencies of each, by scraping the website. The idea is documented here:

master...doronbehar:pkg/octave/pkgs

It's a rough sketch, and the idea is to write a script that will create a list of sources and their deps to generate (perhaps only initially) a list of Nix expressions - sources and their deps & descriptions, a bit like how the lua modules list is generated. If anyone here has more motivation * time you are welcome to work on this.

@doronbehar
Copy link
Contributor

Octave 6.1.0 was released and it landed in Nixpkgs (noticed it after I wrote my previous comment) and #98485 was merged thanks to it's suitesparse's maintainer.

@KarlJoad
Copy link
Contributor

I have started working on this issue as well.
I have started by addressing the first point mentioned in: #65398 (comment)

The commits can be found here: KarlJoad:octave-modules

I am still working on getting an octave-packages.nix going in /pkgs/top-level/ going.

@doronbehar
Copy link
Contributor

I also made progress, though with a slightly different approach towards the definition of all packages. In anyway, I think we need #106586 in order make the packages get the right arguments if octave is overridden - with the extended passthru defined there - for safer usage of blas, lapack and libraries alike.

@KarlJoad KarlJoad self-assigned this Jan 6, 2021
@KarlJoad KarlJoad mentioned this issue Jan 6, 2021
10 tasks
@doronbehar doronbehar changed the title Octave packages support Octave packages documentation missing Feb 27, 2021
@doronbehar doronbehar added 9.needs: documentation and removed 0.kind: packaging request Request for a new package to be added labels Feb 27, 2021
@stale
Copy link

stale bot commented Aug 28, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 28, 2021
@doronbehar
Copy link
Contributor

Still an issue.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 30, 2021
@KarlJoad
Copy link
Contributor

Initial documentation has been merged. If something is lacking, please let me know.

@doronbehar
Copy link
Contributor

Initial documentation has been merged. If something is lacking, please let me know.

This is great! Thanks a lot @KarlJoad for maintaining this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@FRidh @matthuszagh @doronbehar @KarlJoad and others