From 2ae139638c8eef37fbd37914107aed4ccb4c3da7 Mon Sep 17 00:00:00 2001 From: Heitor Augusto <44377258+HeitorAugustoLN@users.noreply.github.com> Date: Mon, 8 Dec 2025 14:18:55 -0300 Subject: [PATCH] oboete: install desktop, icon and metainfo --- pkgs/by-name/ob/oboete/package.nix | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) 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 { }; };