diff --git a/pkgs/by-name/pl/plakar/package.nix b/pkgs/by-name/pl/plakar/package.nix index b532ff8d4085..e6c7c1ea284b 100644 --- a/pkgs/by-name/pl/plakar/package.nix +++ b/pkgs/by-name/pl/plakar/package.nix @@ -11,7 +11,7 @@ buildGoModule (finalAttrs: { pname = "plakar"; - version = "1.1.6"; + version = "1.1.7"; # to avoid having all the Test(Get|Set|Validate)Service.* tests fail on darwin __darwinAllowLocalNetworking = true; @@ -22,10 +22,10 @@ buildGoModule (finalAttrs: { owner = "PlakarKorp"; repo = "plakar"; tag = "v${finalAttrs.version}"; - hash = "sha256-AnVhWvfE2H5GfsgZyS14nla4vWZy7iIlD3lBP+LAJvA="; + hash = "sha256-cbfPWNlTcpQsjd3a1aE+wXos5EN8b96fpA2Cz+qzyR4="; }; - vendorHash = "sha256-s/4vTHFFfOuGnVc3FK0B5aa9kRATr356/mGydw4cMng="; + vendorHash = "sha256-RQ1HhWL33Zi5n8G6RerLLgE2YJk/7HD4k1yiK+sQTBU="; # Remove in next next release patches = [ @@ -35,13 +35,14 @@ buildGoModule (finalAttrs: { includes = [ "subcommands/backup/backup.go" ]; hash = "sha256-9uxkXpuWs758xlu3afANB14hqhVut7agvIeOlcm+98k="; }) + (fetchpatch { + name = "api-add-test-helpers.patch"; + url = "https://github.com/PlakarKorp/plakar/commit/e4153a448174e9d9df9f446560e303d89c48dd10.patch"; + includes = [ "api/helpers_test.go" ]; + hash = "sha256-XsP83iWMFyFFVSjcXsckk3QMLLoJcrVCmvPCe3BlNIQ="; + }) ]; - # broken test introduce in 1.1.6 - postPatch = '' - rm login/completion_code_test.go - ''; - nativeBuildInputs = [ installShellFiles makeBinaryWrapper