xdg-desktop-portal-cosmic: migrate from make to just

This commit is contained in:
Salva
2026-07-07 07:15:32 -06:00
parent 1350febcfa
commit 60106dc1c2
@@ -4,6 +4,7 @@
rustPlatform,
fetchFromGitHub,
glib,
just,
libcosmicAppHook,
pkg-config,
util-linux,
@@ -34,6 +35,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
__structuredAttrs = true;
nativeBuildInputs = [
just
libcosmicAppHook
rustPlatform.bindgenHook
pkg-config
@@ -53,11 +55,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
--replace-fail '/usr/share/backgrounds' '${cosmic-wallpapers}/share/backgrounds'
'';
dontCargoInstall = true;
dontUseJustBuild = true;
dontUseJustCheck = true;
makeFlags = [
"prefix=${placeholder "out"}"
"CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}"
justFlags = [
"--set"
"prefix"
(placeholder "out")
"--set"
"cargo-target-dir"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
passthru = {