File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 18
18
name = "binary-ninja-${ binaryNinjaEdition } " ;
19
19
value = pkgs . callPackage ./package.nix { inherit binaryNinjaEdition ; } ;
20
20
} ) sources . editions ;
21
- packages = editions // {
22
- default = editions . binary-ninja-free ;
23
- } ;
21
+ editionsWayland = lib . mapAttrs' ( name : value : {
22
+ name = "${ name } -wayland" ;
23
+ value = value . override { forceWayland = true ; } ;
24
+ } ) editions ;
25
+ packages = editions // editionsWayland // { default = editions . binary-ninja-free ; } ;
24
26
in
25
27
{
26
28
inherit ( sources ) version ;
Original file line number Diff line number Diff line change 16
16
python3 ,
17
17
18
18
binaryNinjaEdition ? "personal" ,
19
+ forceWayland ? false ,
19
20
} :
20
21
let
21
22
sources = callPackage ./sources.nix { } ;
@@ -53,6 +54,11 @@ stdenv.mkDerivation {
53
54
] ;
54
55
pythonDeps = [ python3 . pkgs . pip ] ;
55
56
appendRunpaths = [ "${ lib . getLib python3 } /lib" ] ;
57
+ qtWrapperArgs = lib . optionals forceWayland [
58
+ "--set"
59
+ "QT_QPA_PLATFORM"
60
+ "wayland"
61
+ ] ;
56
62
buildPhase = ":" ;
57
63
installPhase = ''
58
64
runHook preInstall
You can’t perform that action at this time.
0 commit comments