base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ov / overlayed / package.nix
blob05cf017825a718ea06ecf5b2c2dcead6bacadaf6
2   rustPlatform,
3   lib,
4   callPackage,
5   pkg-config,
6   openssl,
7   libsoup,
8   webkitgtk_4_1,
9   fetchFromGitHub,
10   libayatana-appindicator,
11   nix-update-script,
14 rustPlatform.buildRustPackage rec {
15   pname = "overlayed";
16   version = "0.6.2";
18   src = fetchFromGitHub {
19     owner = "overlayeddev";
20     repo = "overlayed";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-3GFg8czBf1csojXUNC51xFXJnGuXltP6D46fCt6q24I=";
23   };
25   sourceRoot = "${src.name}/apps/desktop/src-tauri";
27   webui = callPackage ./webui.nix {
28     inherit meta src version;
29   };
31   nativeBuildInputs = [
32     pkg-config
33   ];
35   buildInputs = [
36     openssl
37     webkitgtk_4_1
38     libsoup
39   ];
41   env = {
42     OPENSSL_NO_VENDOR = 1;
43   };
45   cargoLock = {
46     lockFile = ./Cargo.lock;
47     outputHashes = {
48       "system-notification-0.1.0" = "sha256-T9SnKBy4x0Y5Ul6oECHJ/lvsYS2TPY8Nrg1R9JtJUXs=";
49       "tauri-nspanel-2.0.0-beta" = "sha256-PhMkSrmmc6fJ0GmT9lPwYMsyBap7/g8vIp210l2nFU4=";
50       "tauri-plugin-window-state-2.0.0-rc.1" = "sha256-8GR9q1+eiULDOtWlLy+sLylOzfAOUO5Q61EP/XvP6c0=";
51     };
52   };
54   postPatch = ''
55     substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
56       --replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
57     substituteInPlace ./tauri.conf.json \
58       --replace-fail '../dist' '${webui}' \
59       --replace-fail 'pnpm build' ' '
60   '';
62   meta = {
63     description = "Modern discord voice chat overlay";
64     homepage = "https://github.com/overlayeddev/overlayed";
65     changelog = "https://github.com/overlayeddev/overlayed/releases/tag/v${version}";
66     platforms = lib.platforms.linux;
67     maintainers = with lib.maintainers; [ bot-wxt1221 ];
68     license = lib.licenses.agpl3Plus;
69     mainProgram = "overlayed";
70   };