NAR Flinger users, I'm cleaning up my binary cache

last thread: NixOS 24.11 packages

sorry for the short notice. if anyone’s using my Nix packages that I’ve built for use on Glitch, update to the latest versions here https://tmpnix-gsdrv.glitch.me/release/built.html

the assets storage space is getting pretty high, so I’m unlisting the artifacts from old builds, which will let Glitch reclaim the space. and that may not be instant, but at some point, you should expect versions from before this last build to stop being available.

if you use NAR Flinger to install Nix packages, update the .narflinger.basenames array in your package.json file to refer to the new packages. ctrl+f in the built.html page to get the new basename, which is the part after /tmp/nix/store/.

for example, here’s a sample package.json file from the original NAR Flinger introduction post:

{
  "scripts": {
    "install": "python3 narflinger.py",
    "start": "node server.js"
  },
  "dependencies": {
    "express": "^4.18.2"
  },
  "narflinger": {
    "basenames": [
      "r9gqywii82drj1m893kdsdkidc80ir9z-nodejs-18.14.1"
    ]
  }
}

the old r9gqywii82drj1m893kdsdkidc80ir9z-nodejs-18.14.1 listed there would need to be updated to the latest build of Node.js 18.

in most cases, you can search for that substring nodejs between the “hash” on the left and the version on the right. in this case, because I build a few different versions of Node.js, include the major version in the search too, i.e. nodejs-18. ctrl+f’ing for that gets us here:

image

then you pick the one that closely matches what you had before. in this case, what we had before was not the .drv file, so it’s not the first result; and it wasn’t the -libv8 library, so it’s not the second result either; it’s the third one with no extra suffix as we had before.

then you just select that up to and excluding the /tmp/nix/store/ part, copy it, and paste it into your package.json file.

{
  "scripts": {
    "install": "python3 narflinger.py",
    "start": "node server.js"
  },
  "dependencies": {
    "express": "^4.18.2"
  },
  "narflinger": {
    "basenames": [
      "6r8bcys5mrzvg77794syf7ywksvqw0fl-nodejs-18.20.6"
    ]
  }
}
2 Likes