Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 20 lines 675 B view raw
1uname -s is used to determine the differences between the command line 2utilities like stat or awk in linux and darwin. However, in nix, guilt 3will be using the nix versions of this programs, not the ones 4installed in the system. Therefore, guilt should use the command-line 5parameters that the linux forms of these commands expect, even if it 6is being run on Darwin. 7 8diff --git a/guilt b/guilt 9index bf50343..cfc9332 100755 10--- a/guilt 11+++ b/guilt 12@@ -986,7 +986,7 @@ guards_file="$GUILT_DIR/$branch/guards" 13 pager="more" 14 [ ! -z "$PAGER" ] && pager="$PAGER" 15 16-UNAME_S=`uname -s` 17+UNAME_S="Linux" 18 19 if [ -r "$GUILT_PATH/os.$UNAME_S" ]; then 20 . "$GUILT_PATH/os.$UNAME_S"