mirror of
https://github.com/mipmip/home-manager-option-search.git
synced 2024-09-11 15:16:31 +03:00
16 lines
369 B
Bash
Executable File
16 lines
369 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/options-${HM_RELEASE}.json
|
|
ruby ./scripts/parse_options-json.rb
|