Skip to content

Commit

Permalink
feat(nix): update nix derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Nov 28, 2023
1 parent 72877c3 commit 7c5363d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
7 changes: 5 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ./.;
}
19 changes: 19 additions & 0 deletions patches/fix(config)__changed_path_for_nix_build.patch
Original file line number Diff line number Diff line change
@@ -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()),
}

0 comments on commit 7c5363d

Please sign in to comment.