From 115bef2513fadcc5cd50a434ff13b69c10c4fa83 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Sun, 31 Mar 2019 22:47:58 +0200 Subject: [PATCH] Justfile: add command for updating the default versions --- Justfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Justfile b/Justfile index 5b66483..51314c2 100755 --- a/Justfile +++ b/Justfile @@ -1,9 +1,18 @@ _DEFAULT_VERSION_TMPL: echo "{{invocation_directory()}}/nix/variables/versions.tmpl.nix" +_DEFAULT_VERSION: + echo "{{invocation_directory()}}/nix/variables/versions.nix" + _usage: 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: echo $(set -x; nix-build --no-link --show-trace {{invocation_directory()}}/nix/default.nix -A channelSources --argstr versionsPath {{versionsPath}} --argstr rebuildarg "dummy")