|
| 1 | +(define-module (quickshell) |
| 2 | + #:use-module ((guix licenses) #:prefix license:) |
| 3 | + #:use-module (gnu packages cpp) |
| 4 | + #:use-module (gnu packages freedesktop) |
| 5 | + #:use-module (gnu packages gcc) |
| 6 | + #:use-module (gnu packages gl) |
| 7 | + #:use-module (gnu packages jemalloc) |
| 8 | + #:use-module (gnu packages linux) |
| 9 | + #:use-module (gnu packages ninja) |
| 10 | + #:use-module (gnu packages pkg-config) |
| 11 | + #:use-module (gnu packages qt) |
| 12 | + #:use-module (gnu packages vulkan) |
| 13 | + #:use-module (gnu packages xdisorg) |
| 14 | + #:use-module (gnu packages xorg) |
| 15 | + #:use-module (guix build-system cmake) |
| 16 | + #:use-module (guix download) |
| 17 | + #:use-module (guix gexp) |
| 18 | + #:use-module (guix git-download) |
| 19 | + #:use-module (guix packages) |
| 20 | + #:use-module (guix packages) |
| 21 | + #:use-module (guix utils)) |
| 22 | + |
| 23 | +(define-public quickshell-git |
| 24 | + (package |
| 25 | + (name "quickshell") |
| 26 | + (version "git") |
| 27 | + (source (local-file "." "quickshell-checkout" |
| 28 | + #:recursive? #t |
| 29 | + #:select? (or (git-predicate (current-source-directory)) |
| 30 | + (const #t)))) |
| 31 | + (build-system cmake-build-system) |
| 32 | + (propagated-inputs (list qtbase qtdeclarative qtsvg)) |
| 33 | + (native-inputs (list ninja |
| 34 | + gcc-14 |
| 35 | + pkg-config |
| 36 | + qtshadertools |
| 37 | + spirv-tools |
| 38 | + wayland-protocols)) |
| 39 | + (inputs (list cli11 |
| 40 | + jemalloc |
| 41 | + libdrm |
| 42 | + libxcb |
| 43 | + libxkbcommon |
| 44 | + linux-pam |
| 45 | + mesa |
| 46 | + pipewire |
| 47 | + qtbase |
| 48 | + qtdeclarative |
| 49 | + qtwayland |
| 50 | + vulkan-headers |
| 51 | + wayland)) |
| 52 | + (arguments |
| 53 | + (list #:tests? #f |
| 54 | + #:configure-flags |
| 55 | + #~(list "-GNinja" |
| 56 | + "-DDISTRIBUTOR=\"In-tree Guix channel\"" |
| 57 | + "-DDISTRIBUTOR_DEBUGINFO_AVAILABLE=NO" |
| 58 | + ;; Breakpad is not currently packaged for Guix. |
| 59 | + "-DCRASH_REPORTER=OFF") |
| 60 | + #:phases #~(modify-phases %standard-phases |
| 61 | + (replace 'build |
| 62 | + (lambda* (#:key parallel-build? #:allow-other-keys) |
| 63 | + (invoke "cmake" "--build" "."))) |
| 64 | + (replace 'install |
| 65 | + (lambda _ (invoke "cmake" "--install" ".")))))) |
| 66 | + (home-page "https://quickshell.outfoxxed.me") |
| 67 | + (synopsis "QtQuick-based desktop shell toolkit") |
| 68 | + (description |
| 69 | + "Quickshell is a flexible QtQuick-based toolkit for creating and |
| 70 | +customizing toolbars, notification centers, and other desktop |
| 71 | +environment tools in a live programming environment.") |
| 72 | + (license license:lgpl3))) |
| 73 | + |
| 74 | +quickshell-git |
0 commit comments