Hello. I am new to the Guix GNU+Linux distro. And I’m trying to get the latest version of Anki (2.1.65). However, an older version (2.1.16) is what’s there in the Guix channel (which is too old). I’m reading here that a simple edit to the education.scm file (the version var) would fix it. Unfortunately, the education.scm file in a Guix system is readonly. Unless the guix git repo maintainers update the code, my only option is to make a custom module and package to supply a newer version. Though, I don’t know how to do that (I’m a noobie). I just need help on figuring that out. Any help is appreciated.

Edit: Okay, I totally spaced the text “;; Later versions have dependencies on npm packages not yet in Guix.”. So, for anki to be at version 2.1.65, it needs more npm packages. So, no modern anki right now… However, I did get to learn more about Guix packaging! (I just have to use the flatpak ver as one comment suggested)

  • surpador
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    You don’t need to make your own module, you really just need a package definition. This packaging tutorial is a bit old but should still be helpful.

    An easier method might be to clone the Guix git repo, edit the package definition in education.scm, and use pre-inst-env to install your newer version.

    But if you’re going to to that, you might as well just submit a patch so others can benefit from the new package. If it’s just a version bump, it might be as simple as bumping the version number in the definition!