nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / gu / guilt / darwin-fix.patch
blob54c11059be64cceed84c68a0ef9eabcb55a9be95
1 uname -s is used to determine the differences between the command line
2 utilities like stat or awk in linux and darwin. However, in nix, guilt
3 will be using the nix versions of this programs, not the ones
4 installed in the system. Therefore, guilt should use the command-line
5 parameters that the linux forms of these commands expect, even if it
6 is being run on Darwin.
8 diff --git a/guilt b/guilt
9 index 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"
16 -UNAME_S=`uname -s`
17 +UNAME_S="Linux"
19 if [ -r "$GUILT_PATH/os.$UNAME_S" ]; then
20 . "$GUILT_PATH/os.$UNAME_S"