Skip to content

Commit

Permalink
Reduce bundle size by removing qt6.full dependency
Browse files Browse the repository at this point in the history
$ ls -lh /nix/store/nhiah2jcdin8q9jrb28l7cdx82x04l6q-playos-installer-2023.9.1.iso/iso/playos-installer-2023.9.1.iso
-r--r--r-- 1 root root 2.2G Jan  1  1970 /nix/store/nhiah2jcdin8q9jrb28l7cdx82x04l6q-playos-installer-2023.9.1.iso/iso/playos-installer-2023.9.1.iso

$ ls -lh /nix/store/r0j40bnkj4nzyy19fm3bfa685zgc90wq-bundle-2023.9.1.raucb
-r--r--r-- 1 root root 1.4G Jan  1  1970 /nix/store/r0j40bnkj4nzyy19fm3bfa685zgc90wq-bundle-2023.9.1.raucb

$ ls -lh /nix/store/7b8s8s83babc5m35xnwg24ndz5yfyp96-playos-live-2023.9.1.iso/iso/playos-live-2023.9.1.iso
-r--r--r-- 1 root root 1.5G Jan  1  1970 /nix/store/7b8s8s83babc5m35xnwg24ndz5yfyp96-playos-live-2023.9.1.iso/iso/playos-live-2023.9.1.iso
  • Loading branch information
guyonvarch committed May 23, 2024
1 parent 3a33b76 commit 94ba04a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions kiosk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, system_name, system_version }:
{ pkgs, system_name, system_version, additional_inputs ? [] }:

with pkgs;

Expand Down Expand Up @@ -30,11 +30,10 @@ python3Packages.buildPythonApplication rec {
pygobject3
pyqt6-webengine
pytest
qt6.full
qt6.qtbase
requests
types-requests
];
] ++ additional_inputs;

postInstall = ''
cp -r images/ $out/images
Expand Down
3 changes: 2 additions & 1 deletion kiosk/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ in
pkgs = pkgs;
system_name = "PlayOS";
system_version = "1.0.0-dev";
# Provides qtwayland only for testing
additional_inputs = [ pkgs.qt6.qtwayland ];
}

0 comments on commit 94ba04a

Please sign in to comment.