From 7c5363d34b45087464c395fcd218bf8f30b7c57c Mon Sep 17 00:00:00 2001 From: Wittano Date: Tue, 28 Nov 2023 17:21:56 +0100 Subject: [PATCH] feat(nix): update nix derivation --- default.nix | 7 +++++-- ...(config)__changed_path_for_nix_build.patch | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 patches/fix(config)__changed_path_for_nix_build.patch diff --git a/default.nix b/default.nix index 99507ae..457c922 100644 --- a/default.nix +++ b/default.nix @@ -4,8 +4,11 @@ buildGoModule rec { name = "filebot"; src = ./.; - # TODO Update vendorHash during push a relase version v1.0 - vendorHash = "sha256-XPRA1i8guYzLDEu5/QCzPhO/CHjNtgx2WNyafuoKjzc="; + vendorHash = "sha256-plRphEIwtPoej+bM4fChhOjBGO/BJ2KoCjZnyD/Z634="; + + patches = [ + "./patches/fix(config)__changed_path_for_nix_build.patch" + ]; goMod = ./.; } diff --git a/patches/fix(config)__changed_path_for_nix_build.patch b/patches/fix(config)__changed_path_for_nix_build.patch new file mode 100644 index 0000000..05a431a --- /dev/null +++ b/patches/fix(config)__changed_path_for_nix_build.patch @@ -0,0 +1,19 @@ +Subject: [PATCH] fix(config): changed path for nix build +--- +Index: setting/config_file_test.go +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/setting/config_file_test.go b/setting/config_file_test.go +--- a/setting/config_file_test.go (revision 72877c31f083a06d58cc2d590e762c6751f58afb) ++++ b/setting/config_file_test.go (date 1701188208131) +@@ -53,7 +53,7 @@ + } + + exp := []string{ +- fmt.Sprintf("/tmp/.Trash-%d/files", os.Getuid()), ++ fmt.Sprintf("/build/.Trash-%d/files", os.Getuid()), + fmt.Sprintf("%s/.local/share/.Trash-%d/files", os.Getenv("HOME"), os.Getuid()), + } +