diff --git a/pkgs/by-name/ne/neothesia/package.nix b/pkgs/by-name/ne/neothesia/package.nix index 31e79e2fbc1a..9aa6d9eb1dde 100644 --- a/pkgs/by-name/ne/neothesia/package.nix +++ b/pkgs/by-name/ne/neothesia/package.nix @@ -13,21 +13,25 @@ libxi, libxcursor, libx11, + fetchpatch, }: -let - version = "0.3.1"; +rustPlatform.buildRustPackage (finalAttrs: { + pname = "neothesia"; + version = "0.4.0"; src = fetchFromGitHub { owner = "PolyMeilex"; repo = "Neothesia"; - rev = "v${version}"; - hash = "sha256-qYwBSye6RYClSlWmHwuy/rxq9w5932tR33Z+o2S1l8k="; + tag = "v${finalAttrs.version}"; + hash = "sha256-5DuyWuDJ08S12C3OWhC9mLhQvPCfWMdJCRUOWtKq/+k="; }; -in -rustPlatform.buildRustPackage { - pname = "neothesia"; - inherit src version; + patches = [ + (fetchpatch { + url = "https://github.com/PolyMeilex/Neothesia/commit/c450689134e5e767293ae9a4878a0396e585259b.patch"; + hash = "sha256-A7GuaEHIfSFrvS1SCBWGCuh3rvb2gaaw8dQ970f6u2Y="; + }) + ]; buildInputs = [ ffmpeg_7 @@ -40,7 +44,7 @@ rustPlatform.buildRustPackage { rustPlatform.bindgenHook ]; - cargoHash = "sha256-mXeNAVYqPsBWiUZFV/atx/xjLgFNarm2HwI7k/NaAbc="; + cargoHash = "sha256-gX9DlgPgrM8KukX3auxbBKpJq7QG4+kRhHSUk3eQjAQ="; cargoBuildFlags = [ "-p neothesia -p neothesia-cli" @@ -74,4 +78,4 @@ rustPlatform.buildRustPackage { lib.maintainers.naxdy ]; }; -} +})