diff options
author | Alan Pearce | 2024-05-06 17:30:43 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-07 14:01:30 +0200 |
commit | 8c1332020d25f74baa463bb1cec0e6783f565034 (patch) | |
tree | cd770b758b2538b79c5f0ddf7187b2cd61380f8d /justfile | |
parent | c0fbf11f843af84e8891a708c4d217dd6c523473 (diff) | |
download | searchix-8c1332020d25f74baa463bb1cec0e6783f565034.tar.lz searchix-8c1332020d25f74baa463bb1cec0e6783f565034.tar.zst searchix-8c1332020d25f74baa463bb1cec0e6783f565034.zip |
feat: link to exact commits in NixOS/nixpkgs
Diffstat (limited to 'justfile')
-rw-r--r-- | justfile | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/justfile b/justfile index 62e5659..c3b9130 100644 --- a/justfile +++ b/justfile @@ -4,14 +4,41 @@ default: prepare: ln -sf $(nix-build --no-out-link -A css) frontend/static/base.css -update-nixos-options: - wgo run -exit ./process --input $(nix-build --no-out-link -A nixos-options)/share/doc/nixos/options.json --output data/nixos-options.json +get-nixpkgs-revision channel="nixos-unstable": + curl -L https://channels.nixos.org/{{ channel }}/git-revision > data/raw/nixpkgs-{{ channel }}-revision + +update-nixpkgs channel="nixos-unstable": (get-nixpkgs-revision channel) + curl -L https://channels.nixos.org/{{ channel }}/packages.json.br | brotli --stdout --decompress > data/raw/nixpkgs-{{ channel }}.json + +update-nixos-options channel="nixos-unstable": (get-nixpkgs-revision channel) + curl -L https://channels.nixos.org/{{ channel }}/options.json.br | brotli --stdout --decompress > data/raw/nixos-options-{{ channel }}.json update-darwin-options: - wgo run -exit ./process --input $(nix-build --no-out-link -A darwin-options)/share/doc/darwin/options.json --output data/darwin-options.json + ln -sf $(nix-build --no-out-link -A darwin-options)/share/doc/darwin/options.json data/raw/darwin-options.json update-home-manager-options: - wgo run -exit ./process --input $(nix-build --no-out-link -A home-manager-options)/share/doc/home-manager/options.json --output data/home-manager-options.json + ln -sf $(nix-build --no-out-link -A home-manager-options)/share/doc/home-manager/options.json data/raw/home-manager-options.json + +process-nixos-options channel="nixos-unstable": + wgo run -exit ./process \ + --input data/raw/nixos-options-{{ channel }}.json \ + --output data/processed/nixos-options-{{ channel }}.json \ + --repo NixOS/nixpkgs \ + --revision-file data/raw/nixpkgs-{{ channel }}-revision + +process-darwin-options: + wgo run -exit ./process \ + --input data/raw/darwin-options.json \ + --output data/processed/darwin-options.json \ + --repo LnL7/nix-darwin + +process-home-manager-options: + wgo run -exit ./process \ + --input data/raw/home-manager-options.json \ + --output data/processed/home-manager-options.json \ + --repo nix-community/home-manager + +process-all-options: process-nixos-options process-darwin-options process-home-manager-options update-all-options: update-nixos-options update-darwin-options update-home-manager-options |