diff --git a/pkgs/by-name/ob/oboete/package.nix b/pkgs/by-name/ob/oboete/package.nix index 75a463e7306f..c95723d46b42 100644 --- a/pkgs/by-name/ob/oboete/package.nix +++ b/pkgs/by-name/ob/oboete/package.nix @@ -1,7 +1,10 @@ { lib, + stdenv, rustPlatform, fetchFromGitHub, + fetchpatch2, + just, libcosmicAppHook, sqlite, nix-update-script, @@ -20,10 +23,34 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-maijiSXeKlmvCBjJdAiGV2lulsNehiyN/sxgXFCSYts="; - nativeBuildInputs = [ libcosmicAppHook ]; + # TODO: Remove in the next update + patches = [ + (fetchpatch2 { + name = "fix-oboete-justfile.patch"; + url = "https://patch-diff.githubusercontent.com/raw/mariinkys/oboete/pull/25.diff?full_index=1"; + hash = "sha256-GPrtL73EKQi5fIIWPYcuS3HRwJ4ZHFsHzRYN6pYuUVg="; + }) + ]; + + nativeBuildInputs = [ + libcosmicAppHook + just + ]; buildInputs = [ sqlite ]; + dontUseJustBuild = true; + dontUseJustCheck = true; + + justFlags = [ + "--set" + "prefix" + (placeholder "out") + "--set" + "cargo-target-dir" + "target/${stdenv.hostPlatform.rust.cargoShortTarget}" + ]; + passthru = { updateScript = nix-update-script { }; };