mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
quick-webapps: init at 1.0.2
Fixes #312216
Succeeds #322226
(cherry picked from commit 049f62637b)
This commit is contained in:
committed by
github-actions[bot]
parent
caac3bd3dc
commit
c5a9579572
67
pkgs/by-name/qu/quick-webapps/package.nix
Normal file
67
pkgs/by-name/qu/quick-webapps/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user