Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
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=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
})
|