Skip to content

Commit

Permalink
mozillavpn: switch to standard callPackage
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
(cherry picked from commit 3481adf)
  • Loading branch information
andersk authored and github-actions[bot] committed Sep 28, 2024
1 parent a77cfcf commit a3f956e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
31 changes: 12 additions & 19 deletions pkgs/tools/networking/mozillavpn/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,11 @@
pkg-config,
polkit,
python3,
qt5compat,
qtbase,
qtnetworkauth,
qtsvg,
qttools,
qtwayland,
qtwebsockets,
qt6,
rustPlatform,
rustc,
stdenv,
wireguard-tools,
wrapQtAppsHook,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -67,12 +60,12 @@ stdenv.mkDerivation (finalAttrs: {
libgcrypt
libgpg-error
libsecret
qt5compat
qtbase
qtnetworkauth
qtsvg
qtwayland
qtwebsockets
qt6.qt5compat
qt6.qtbase
qt6.qtnetworkauth
qt6.qtsvg
qt6.qtwayland
qt6.qtwebsockets
];
nativeBuildInputs = [
cargo
Expand All @@ -83,10 +76,10 @@ stdenv.mkDerivation (finalAttrs: {
python3.pkgs.glean-parser
python3.pkgs.pyyaml
python3.pkgs.setuptools
qttools
qt6.qttools
qt6.wrapQtAppsHook
rustPlatform.cargoSetupHook
rustc
wrapQtAppsHook
];

postPatch = ''
Expand All @@ -102,9 +95,9 @@ stdenv.mkDerivation (finalAttrs: {
'';

cmakeFlags = [
"-DQT_LCONVERT_EXECUTABLE=${qttools.dev}/bin/lconvert"
"-DQT_LUPDATE_EXECUTABLE=${qttools.dev}/bin/lupdate"
"-DQT_LRELEASE_EXECUTABLE=${qttools.dev}/bin/lrelease"
"-DQT_LCONVERT_EXECUTABLE=${qt6.qttools.dev}/bin/lconvert"
"-DQT_LUPDATE_EXECUTABLE=${qt6.qttools.dev}/bin/lupdate"
"-DQT_LRELEASE_EXECUTABLE=${qt6.qttools.dev}/bin/lrelease"
];
dontFixCmake = true;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7526,7 +7526,7 @@ with pkgs;

mcrcon = callPackage ../tools/networking/mcrcon { };

mozillavpn = qt6Packages.callPackage ../tools/networking/mozillavpn { };
mozillavpn = callPackage ../tools/networking/mozillavpn { };

mozwire = callPackage ../tools/networking/mozwire {
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
Expand Down

0 comments on commit a3f956e

Please sign in to comment.