Files
nixpkgs/pkgs/by-name/ov/overlayed/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.8 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
cargo-tauri,
jq,
moreutils,
nodejs,
pkg-config,
pnpm_9,
libayatana-appindicator,
libsoup_3,
openssl,
webkitgtk_4_1,
}:
rustPlatform.buildRustPackage rec {
pname = "overlayed";
version = "0.6.2";
src = fetchFromGitHub {
owner = "overlayeddev";
repo = "overlayed";
tag = "v${version}";
hash = "sha256-3GFg8czBf1csojXUNC51xFXJnGuXltP6D46fCt6q24I=";
};
cargoRoot = "apps/desktop/src-tauri";
buildAndTestSubdir = "apps/desktop/src-tauri";
cargoHash = "sha256-6wN4nZQWrY0J5E+auj17B3iJ/84hzBXYA/bJsX/N5pk=";
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
fetcherVersion = 1;
hash = "sha256-+yyxoodcDfqJ2pkosd6sMk77/71RDsGthedo1Oigwto=";
};
nativeBuildInputs = [
cargo-tauri.hook
jq
moreutils
nodejs
pkg-config
pnpm_9.configHook
];
buildInputs = [
libayatana-appindicator
libsoup_3
openssl
webkitgtk_4_1
];
env = {
OPENSSL_NO_VENDOR = 1;
};
postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
--replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
# disable updater
jq '.plugins.updater.endpoints = [ ] | .bundle.createUpdaterArtifacts = false' \
apps/desktop/src-tauri/tauri.conf.json | sponge apps/desktop/src-tauri/tauri.conf.json
'';
meta = {
description = "Modern discord voice chat overlay";
homepage = "https://github.com/overlayeddev/overlayed";
changelog = "https://github.com/overlayeddev/overlayed/releases/tag/v${version}";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
license = lib.licenses.agpl3Plus;
mainProgram = "overlayed";
};
}