quick-webapps: init at 1.0.2

Fixes #312216
Succeeds #322226

(cherry picked from commit 049f62637b)
This commit is contained in:
Leah Amelia Chen
2025-05-18 23:00:40 +02:00
committed by github-actions[bot]
parent caac3bd3dc
commit c5a9579572

View File

@@ -0,0 +1,67 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
just,
pkg-config,
makeBinaryWrapper,
libcosmicAppHook,
libxkbcommon,
openssl,
wayland,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "quick-webapps";
version = "1.0.2";
src = fetchFromGitHub {
owner = "cosmic-utils";
repo = "web-apps";
tag = finalAttrs.version;
hash = "sha256-yd4lALm7eG4NxrvaduZC1SZEE83j/nRsG2ufrfUMJJM=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-gg8WCzKbpFT8SRzMxC7ezvv+uN9IpIbGy/yytFC9uaM=";
nativeBuildInputs = [
just
pkg-config
libcosmicAppHook
];
buildInputs = [
libxkbcommon
openssl
];
env.VERGEN_GIT_SHA = finalAttrs.src.tag;
dontUseJustBuild = true;
dontUseJustCheck = true;
justFlags = [
"--set"
"prefix"
(placeholder "out")
"--set"
"bin-src"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/quick-webapps"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Web App Manager for the COSMIC desktop";
homepage = "https://github.com/cosmic-utils/web-apps";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ pluiedev ];
mainProgram = "quick-webapps";
};
})