Skip to content

Commit

Permalink
fix: build on nix ci
Browse files Browse the repository at this point in the history
Log: fix build on nixos
  • Loading branch information
wineee committed Jan 2, 2024
1 parent b1fa8b1 commit 3e6f4a1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
treeland = pkgs.qt6Packages.callPackage ./nix {
nix-filter = nix-filter.lib;
waylib = waylib.packages.${system}.default;
dtkdeclarative = dde-nixos.packages.${system}.qt6.dtkdeclarative;
inherit (dde-nixos.packages.${system}.qt6) dtkdeclarative dtksystemsettings;
};
in
{
Expand Down
11 changes: 9 additions & 2 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
, qtquick3d
, qtwayland
, dtkdeclarative
, dtksystemsettings
, waylib
, wayland
, wayland-protocols
, wlr-protocols
, pixman
, pam
, libxcrypt
, nixos-artwork
}:

Expand All @@ -39,9 +41,12 @@ stdenv.mkDerivation rec {
};

postPatch = ''
substituteInPlace src/{treeland/quick/qml/OutputDelegate.qml,greeter/Greeter.qml} \
--replace "/usr/share/wallpapers/deepin/desktop.jpg" \
for file in $(grep -rl "/usr/share/wallpapers/deepin")
do
substituteInPlace $file \
--replace "/usr/share/wallpapers/deepin/desktop.jpg" \
"${nixos-artwork.wallpapers.simple-blue}/share/backgrounds/nixos/nix-wallpaper-simple-blue.png"
done
'';

nativeBuildInputs = [
Expand All @@ -58,12 +63,14 @@ stdenv.mkDerivation rec {
qtquick3d
qtwayland
dtkdeclarative
dtksystemsettings
waylib
wayland
wayland-protocols
wlr-protocols
pixman
pam
libxcrypt
];

cmakeFlags = [
Expand Down

0 comments on commit 3e6f4a1

Please sign in to comment.