Send nixpkgs tarballs to Software Heritage [maintainer=@nlewo]
Find a file
2025-10-19 09:50:46 +02:00
.github/workflows Update GitHub Actions workflow 2025-07-21 11:24:22 +02:00
scripts scripts/post-process.py: Make the script execution less verbose 2025-07-21 11:12:40 +02:00
.gitignore Add .gitignore to ignore build folder 2025-06-26 01:38:59 +02:00
flake.lock Add a flake 2025-07-20 19:01:51 +02:00
flake.nix Remove the nginx configuration from the flake 2025-09-07 12:43:25 +02:00
LICENSE Add MIT license 2022-03-06 09:50:15 +01:00
README.md Update URL to nixpkgs-swh.nixos.org 2025-09-22 23:37:13 +02:00

This repository contains scripts to generate a sources.json file ingested by Software Heritage. This file contains the URL of tarballs required to build Nixpkgs. The nix-community Buildkite CI generates it each day by picking a Nixpkgs commit built by Hydra.

A basic analysis of this file is also generated and published here.

Locally generate files

To generate files for the nixpkgs.hello nixpkgs subset, run nix run .#nixpkgs-swh-generate -- --testing /tmp/swh unstable. This is mainly used to debugging purposes.

If you have a lot of memory and time, to generate files for the whole nixpkgs:

nix run .#nixpkgs-swh-generate -- /tmp/swh unstable