about summary refs log tree commit diff
path: root/pkgs/applications/version-management/guilt/darwin-fix.patch
diff options
context:
space:
mode:
authorJavi Merino <merino.jav@gmail.com>2023-08-16 06:14:43 +0100
committerJavi Merino <merino.jav@gmail.com>2023-09-03 15:06:24 +0100
commit9288bd04336367eefcdb3dcbeaf75d38374a9f96 (patch)
tree6a56c48c09d5ecefacc2a94bb94b103538935491 /pkgs/applications/version-management/guilt/darwin-fix.patch
parent9867343397ddb05de9d7cb75f312f83cfbc29152 (diff)
guilt: init at 0.37-rc1
Diffstat (limited to 'pkgs/applications/version-management/guilt/darwin-fix.patch')
-rw-r--r--pkgs/applications/version-management/guilt/darwin-fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/guilt/darwin-fix.patch b/pkgs/applications/version-management/guilt/darwin-fix.patch
new file mode 100644
index 0000000000000..54c11059be64c
--- /dev/null
+++ b/pkgs/applications/version-management/guilt/darwin-fix.patch
@@ -0,0 +1,20 @@
+uname -s is used to determine the differences between the command line
+utilities like stat or awk in linux and darwin. However, in nix, guilt
+will be using the nix versions of this programs, not the ones
+installed in the system.  Therefore, guilt should use the command-line
+parameters that the linux forms of these commands expect, even if it
+is being run on Darwin.
+
+diff --git a/guilt b/guilt
+index bf50343..cfc9332 100755
+--- a/guilt
++++ b/guilt
+@@ -986,7 +986,7 @@ guards_file="$GUILT_DIR/$branch/guards"
+ pager="more"
+ [ ! -z "$PAGER" ] && pager="$PAGER"
+ 
+-UNAME_S=`uname -s`
++UNAME_S="Linux"
+ 
+ if [ -r "$GUILT_PATH/os.$UNAME_S" ]; then
+ 	. "$GUILT_PATH/os.$UNAME_S"