diff options
author | Alan Pearce | 2024-05-09 16:47:41 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-09 19:27:55 +0200 |
commit | e062ca72b222b890e345548bd8422d5df98e9fef (patch) | |
tree | 89f52ebfdb1fb8069e6323d9dde42f5491dad5d1 /justfile | |
parent | 967f6fdf5c1693d3aa27079b3ae28768fb7356c6 (diff) | |
download | searchix-e062ca72b222b890e345548bd8422d5df98e9fef.tar.lz searchix-e062ca72b222b890e345548bd8422d5df98e9fef.tar.zst searchix-e062ca72b222b890e345548bd8422d5df98e9fef.zip |
feat: import sources from configuration in go code and index options
Diffstat (limited to 'justfile')
-rw-r--r-- | justfile | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/justfile b/justfile index 700e255..78bea08 100644 --- a/justfile +++ b/justfile @@ -4,44 +4,6 @@ default: prepare: ln -sf $(nix-build --no-out-link -A css) frontend/static/base.css -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: - ln -sf $(nix-build --no-out-link -A darwin-options)/share/doc/darwin/options.json data/raw/darwin-options.json - -update-home-manager-options: - 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 - checkformat: gofmt -d . goimports -d . @@ -56,5 +18,5 @@ fix: precommit: nix-build -A pre-commit-check -dev: prepare +dev: watchexec wgo run -exit ./serve/ --live |