nixpkgs/pkgs/by-name/ov/overlayed/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.7 KiB
Nix
Raw Normal View History

2024-09-10 11:33:22 +00:00
{
rustPlatform,
lib,
callPackage,
pkg-config,
openssl,
libsoup,
2024-10-26 02:35:53 +00:00
webkitgtk_4_1,
2024-09-10 11:33:22 +00:00
fetchFromGitHub,
libayatana-appindicator,
2024-10-26 02:35:53 +00:00
nix-update-script,
2024-09-10 11:33:22 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "overlayed";
2024-10-26 02:35:53 +00:00
version = "0.6.2";
2024-09-10 11:33:22 +00:00
src = fetchFromGitHub {
owner = "overlayeddev";
repo = "overlayed";
rev = "refs/tags/v${version}";
2024-10-26 02:35:53 +00:00
hash = "sha256-3GFg8czBf1csojXUNC51xFXJnGuXltP6D46fCt6q24I=";
2024-09-10 11:33:22 +00:00
};
sourceRoot = "${src.name}/apps/desktop/src-tauri";
webui = callPackage ./webui.nix {
inherit meta src version;
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
2024-10-26 02:35:53 +00:00
webkitgtk_4_1
2024-09-10 11:33:22 +00:00
libsoup
];
env = {
OPENSSL_NO_VENDOR = 1;
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
2024-10-26 02:35:53 +00:00
"system-notification-0.1.0" = "sha256-T9SnKBy4x0Y5Ul6oECHJ/lvsYS2TPY8Nrg1R9JtJUXs=";
"tauri-nspanel-2.0.0-beta" = "sha256-PhMkSrmmc6fJ0GmT9lPwYMsyBap7/g8vIp210l2nFU4=";
"tauri-plugin-window-state-2.0.0-rc.1" = "sha256-8GR9q1+eiULDOtWlLy+sLylOzfAOUO5Q61EP/XvP6c0=";
2024-09-10 11:33:22 +00:00
};
};
postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
--replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
substituteInPlace ./tauri.conf.json \
2024-10-26 02:35:53 +00:00
--replace-fail '../dist' '${webui}' \
--replace-fail 'pnpm build' ' '
2024-09-10 11:33:22 +00:00
'';
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";
};
}