home-manager-option-search/scripts/build_hm_options.sh
2024-04-26 18:39:07 +02:00

16 lines
371 B
Bash
Executable File

#!/usr/bin/env sh
# Copyright 2024 Pim Snel <post@pimsnel.com
# License: MIT
if [ -z $HM_RELEASE ]; then
HM_RELEASE=master
fi
echo "building Home Manager options from ${HM_RELEASE}"
rm -Rf result
nix build github:nix-community/home-manager/${HM_RELEASE}#docs-json --no-write-lock-file
rm -f ./data/hm-options-${HM_RELEASE}.json
ruby ./scripts/parse_options-json.rb