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]>
  • Loading branch information
andersk committed Sep 25, 2024
1 parent 9357f4f commit 3481adf
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 @@ -12,18 +12,11 @@
libsecret,
pkg-config,
python3,
qt5compat,
qtbase,
qtnetworkauth,
qtsvg,
qttools,
qtwayland,
qtwebsockets,
qt6,
rustPlatform,
rustc,
stdenv,
wireguard-tools,
wrapQtAppsHook,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -66,12 +59,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 @@ -82,10 +75,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 @@ -101,9 +94,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 @@ -7215,7 +7215,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 3481adf

Please sign in to comment.