-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
cmake, | ||
ninja, | ||
pkg-config, | ||
kdePackages, | ||
|
||
libepoxy, | ||
libinput, | ||
libcap, | ||
como, | ||
wrapland, | ||
microsoft-gsl, | ||
pixman, | ||
wayland, | ||
wlroots, | ||
libdrm, | ||
}: | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "theseus-ship"; | ||
version = "6.2.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "winft"; | ||
repo = "theseus-ship"; | ||
rev = "refs/tags/v${finalAttrs.version}"; | ||
hash = "sha256-8KTTkOkYcltcYZ+arvhRQSrHiZDX6F3JwoXVXa8NFKU="; | ||
}; | ||
|
||
|
||
nativeBuildInputs = [ | ||
cmake | ||
ninja | ||
pkg-config | ||
kdePackages.extra-cmake-modules | ||
kdePackages.wrapQtAppsHook | ||
libcap | ||
]; | ||
|
||
buildInputs = with kdePackages; [ | ||
kcrash | ||
kdbusaddons | ||
kwidgetsaddons | ||
kirigami | ||
kscreenlocker | ||
breeze | ||
wayland | ||
qtbase | ||
qttools | ||
|
||
libepoxy | ||
libinput | ||
como | ||
wrapland | ||
microsoft-gsl | ||
pixman | ||
wayland | ||
wlroots | ||
libdrm | ||
]; | ||
|
||
# It wants <drm_fourcc.h> and not <libdrm/drm_fourcc.h> | ||
env.NIX_CFLAGS_COMPILE = "-isystem ${lib.getDev libdrm}/include/libdrm"; | ||
|
||
cmakeFlags = [ | ||
# Otherwise the kcoreaddon plugin macro would try to write them to | ||
# /plasma (yes, top level). How fun! | ||
(lib.cmakeFeature "CMAKE_LIBRARY_OUTPUT_DIRECTORY" "${placeholder "out"}/lib") | ||
]; | ||
|
||
meta = { | ||
description = "Wayland and X11 Compositor for the KDE Plasma desktop"; | ||
homepage = "https://github.com/winft/theseus-ship"; | ||
license = with lib.licenses; [ gpl2Only ]; | ||
platforms = lib.platforms.linux; | ||
maintainers = with lib.maintainers; [ pluiedev ]; | ||
}; | ||
}) |