mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
fluux-messenger: init at 0.16.0 (#531678)
This commit is contained in:
commit
754eae2210
2 changed files with 83 additions and 0 deletions
|
|
@ -10455,6 +10455,11 @@
|
|||
githubId = 14929991;
|
||||
keys = [ { fingerprint = "F7D3 7890 228A 9074 40E1 FD48 46B9 228E 814A 2AAC"; } ];
|
||||
};
|
||||
haansn08 = {
|
||||
name = "Stefan Haan";
|
||||
github = "haansn08";
|
||||
githubId = 6215916;
|
||||
};
|
||||
hacker1024 = {
|
||||
name = "hacker1024";
|
||||
email = "hacker1024@users.sourceforge.net";
|
||||
|
|
|
|||
78
pkgs/by-name/fl/fluux-messenger/package.nix
Normal file
78
pkgs/by-name/fl/fluux-messenger/package.nix
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
cargo-tauri,
|
||||
nodejs,
|
||||
npmHooks,
|
||||
fetchNpmDeps,
|
||||
pkg-config,
|
||||
webkitgtk_4_1,
|
||||
libayatana-appindicator,
|
||||
libxscrnsaver,
|
||||
cacert,
|
||||
wrapGAppsHook3,
|
||||
autoPatchelfHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "fluux-messenger";
|
||||
version = "0.16.0";
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "processone";
|
||||
repo = "fluux-messenger";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-P4bRyge5EGdlZBdX+gIWh48itkCLQ+EjKLHt4xv6qnY=";
|
||||
};
|
||||
|
||||
cargoRoot = "apps/fluux/src-tauri";
|
||||
cargoHash = "sha256-YIX/F9LMuHFGJ89NIsFLUjjrR7XBoJF78OsyXiSjEqU=";
|
||||
|
||||
npmDeps = fetchNpmDeps {
|
||||
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
|
||||
inherit (finalAttrs) src;
|
||||
hash = "sha256-rzkFrvLb/0c+pg2SIUnhyTHK2MGL2ugRI9XuHtdm8XE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cargo-tauri.hook
|
||||
nodejs
|
||||
npmHooks.npmConfigHook
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
(wrapGAppsHook3.override { isGraphical = true; })
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
webkitgtk_4_1
|
||||
libayatana-appindicator
|
||||
libxscrnsaver
|
||||
cacert
|
||||
];
|
||||
|
||||
# libayatana-appindicator is not in the RUNPATH by default
|
||||
runtimeDependencies = [ libayatana-appindicator ];
|
||||
|
||||
tauriBuildFlags = [ "--no-sign" ];
|
||||
|
||||
# setting buildAndTestSubdir from the beginning interferes with buildPhase
|
||||
preCheck = "export buildAndTestSubdir=${finalAttrs.cargoRoot}";
|
||||
# tauriInstallHook only works when we are in cargoRoot
|
||||
preInstall = "pushd $buildAndTestSubdir";
|
||||
postInstall = "popd";
|
||||
|
||||
meta = {
|
||||
description = "XMPP client for communities and organizations";
|
||||
homepage = "https://github.com/processone/fluux-messenger";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
mainProgram = "fluux";
|
||||
maintainers = [ lib.maintainers.haansn08 ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue