Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / wi / wio / package.nix
blob5982f80cef36369838fe81cb2940ac8da4d89d43
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , alacritty
5 , cage
6 , cairo
7 , libxkbcommon
8 , makeWrapper
9 , mesa
10 , meson
11 , ninja
12 , pkg-config
13 , udev
14 , unstableGitUpdater
15 , wayland
16 , wayland-protocols
17 , wlroots
18 , xwayland
21 stdenv.mkDerivation (finalAttrs: {
22   pname = "wio";
23   version = "0.17.3-unstable-2024-04-30";
25   src = fetchFromGitHub {
26     owner = "Rubo3";
27     repo = "wio";
28     rev = "9d459df379efdcf20ea10906c48c79c506c32066";
29     hash = "sha256-Bn7mCVQPH/kH2WRsGPPGIGgvk0r894zZHCHl6BVmWVg=";
30   };
32   nativeBuildInputs = [
33     makeWrapper
34     meson
35     ninja
36     pkg-config
37   ];
39   buildInputs = [
40     cairo
41     libxkbcommon
42     mesa
43     udev
44     wayland
45     wayland-protocols
46     wlroots
47     xwayland
48   ];
50   strictDeps = false; # why is it so hard?
52   env.NIX_CFLAGS_COMPILE = "-Wno-error=maybe-uninitialized";
54   postInstall = ''
55     wrapProgram $out/bin/wio \
56       --prefix PATH ":" "${lib.makeBinPath [ alacritty cage ]}"
57   '';
59   passthru = {
60     providedSessions = [ "wio" ];
61     updateScript = unstableGitUpdater { };
62   };
64   meta = {
65     homepage = "https://github.com/Rubo3/wio";
66     description = "Wayland compositor similar to Plan 9's rio";
67     longDescription = ''
68       Wio is a Wayland compositor for Linux and FreeBSD which has a similar look
69       and feel to plan9's rio.
70     '';
71     license = with lib.licenses; [ bsd3 ];
72     mainProgram = "wio";
73     maintainers = with lib.maintainers; [ AndersonTorres ];
74     inherit (wayland.meta) platforms;
75   };