From 1f1958d185faed3dd306fe27402a14da717fd6d7 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 22 Jun 2024 23:11:21 +0200 Subject: [PATCH] Rename the module evaluation function --- scripts/eval-module.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/eval-module.sh b/scripts/eval-module.sh index 453d4f26..f811801f 100755 --- a/scripts/eval-module.sh +++ b/scripts/eval-module.sh @@ -1,9 +1,9 @@ #!/bin/bash -function eval() { +function evalModule() { local modulePath="$1"; local property="$2"; local nixPkgs='import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05") { config = {}; overlays = []; }'; nix eval --file "$modulePath" "${@:3}" --apply "_: (($nixPkgs).lib.evalModules { modules = [ _ ]; }).config.$property"; } -eval $@; +evalModule $@;