Justfile: add command for updating the default versions
This commit is contained in:
parent
91bcf9c15b
commit
115bef2513
1 changed files with 9 additions and 0 deletions
9
Justfile
9
Justfile
|
@ -1,9 +1,18 @@
|
||||||
_DEFAULT_VERSION_TMPL:
|
_DEFAULT_VERSION_TMPL:
|
||||||
echo "{{invocation_directory()}}/nix/variables/versions.tmpl.nix"
|
echo "{{invocation_directory()}}/nix/variables/versions.tmpl.nix"
|
||||||
|
|
||||||
|
_DEFAULT_VERSION:
|
||||||
|
echo "{{invocation_directory()}}/nix/variables/versions.nix"
|
||||||
|
|
||||||
_usage:
|
_usage:
|
||||||
just -l
|
just -l
|
||||||
|
|
||||||
|
update-default-versions:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
template="$(just _DEFAULT_VERSION_TMPL)"
|
||||||
|
outfile="$(just _DEFAULT_VERSION)"
|
||||||
|
esh -o ${outfile} ${template}
|
||||||
|
|
||||||
_get_nix_path versionsPath:
|
_get_nix_path versionsPath:
|
||||||
echo $(set -x; nix-build --no-link --show-trace {{invocation_directory()}}/nix/default.nix -A channelSources --argstr versionsPath {{versionsPath}} --argstr rebuildarg "dummy")
|
echo $(set -x; nix-build --no-link --show-trace {{invocation_directory()}}/nix/default.nix -A channelSources --argstr versionsPath {{versionsPath}} --argstr rebuildarg "dummy")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue