qyliss changed the topic of #spectrum to: A compartmentalized operating system | https://spectrum-os.org/ | Logs: https://logs.spectrum-os.org/spectrum/
tilpner_ has joined #spectrum
tilpner has quit [Ping timeout: 272 seconds]
tilpner_ is now known as tilpner
cole-h has joined #spectrum
<danielrf[m]> I noticed spectrum-os has an `update.py` script that fetches rev/sha256s for projects from a "repo" manifest
<danielrf[m]> I actually do something similar in https://github.com/danielfullmer/robotnix to fetch AOSP source code
<danielrf[m]> My script is under `mk-repo-file.py`
<danielrf[m]> It relies on a lightly forked version of `repo` that provides a new `dumpjson` command that outputs the parsed manifest information we need
<danielrf[m]> `my-repo-file.py` then takes that json output and appends `sha256`s from nix-prefetch-git
<danielrf[m]> I thought I should let you all know in case there is any interest
<danielrf[m]> It looks like you only need information for certain subprojects instead of the entire repo in spectrum--while I need the entire repo
<danielrf[m]> but there might be some code we could share in the future if you ever find yourself needing something more than the existing `update.py` script
cole-h has quit [Quit: Goodbye]
<qyliss> danielrf[m]: that script actually exists in upstream Nixpkgs, and it would maybe be cool to pull it into its own seperate thing and collaborate there?
<qyliss> It's crosvm.updateScript in upstream Nixpkgs.
<qyliss> Although I'd be hesitant to rely on a modified repo -- what do you need that for?
nicoo has quit [Remote host closed the connection]
nicoo has joined #spectrum
inf has joined #spectrum
cole-h has joined #spectrum
<danielrf[m]> qyliss: it's not strictly necessary--but I've found it easier to rely on the upstream project to do any parsing / evaluation of their files, and just patching it to output the data in the format we need
<danielrf[m]> Yeah, i'd be up for collaborating on something like this in the future--at the very least I should try to clean up my script and add some basic tests
cole-h has quit [Quit: Goodbye]
MichaelRaskin has quit [Quit: MichaelRaskin]