oboete: install desktop, icon and metainfo

This commit is contained in:
Heitor Augusto
2025-12-08 14:18:55 -03:00
parent 3e12aa6ced
commit 2ae139638c
+28 -1
View File
@@ -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 { };
};