qutebrowser: fix build

This commit is contained in:
Robert Schütz 2022-10-11 22:24:53 -07:00 committed by Robert Schütz
parent 1ca4c178dd
commit 5c58d4f5ea

View file

@ -116,15 +116,15 @@ buildPythonApplication {
# Install icons # Install icons
for i in 16 24 32 48 64 128 256 512; do for i in 16 24 32 48 64 128 256 512; do
install -Dm644 "qutebrowser/icons/qutebrowser-''${i}x''${i}.png" \ install -Dm644 "${lib.optionalString isQt6 "qutebrowser/"}icons/qutebrowser-''${i}x''${i}.png" \
"$out/share/icons/hicolor/''${i}x''${i}/apps/qutebrowser.png" "$out/share/icons/hicolor/''${i}x''${i}/apps/qutebrowser.png"
done done
install -Dm644 ${if isQt6 then "qutebrowser/" else ""}icons/qutebrowser.svg \ install -Dm644 ${lib.optionalString isQt6 "qutebrowser/"}icons/qutebrowser.svg \
"$out/share/icons/hicolor/scalable/apps/qutebrowser.svg" "$out/share/icons/hicolor/scalable/apps/qutebrowser.svg"
# Install scripts # Install scripts
sed -i "s,/usr/bin/,$out/bin/,g" scripts/open_url_in_instance.sh sed -i "s,/usr/bin/,$out/bin/,g" scripts/open_url_in_instance.sh
${if isQt6 then "rm -rf scripts/{testbrowser,dev}" else ""} ${lib.optionalString isQt6 "rm -rf scripts/{testbrowser,dev}"}
install -Dm755 -t "$out/share/qutebrowser/scripts/" $(find scripts -type f) install -Dm755 -t "$out/share/qutebrowser/scripts/" $(find scripts -type f)
install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/* install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/*