mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
80 lines
1.2 KiB
Nix
80 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
version,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
wayland-scanner,
|
|
wayland,
|
|
wayland-protocols,
|
|
libGL,
|
|
libglvnd,
|
|
freetype,
|
|
fontconfig,
|
|
cairo,
|
|
pango,
|
|
libxkbcommon,
|
|
sdbus-cpp_2,
|
|
systemd,
|
|
pipewire,
|
|
pam,
|
|
curl,
|
|
libwebp,
|
|
glib,
|
|
polkit,
|
|
librsvg
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "noctalia";
|
|
inherit version;
|
|
|
|
src = lib.cleanSource ../.;
|
|
|
|
postPatch = ''
|
|
# Remove -march=native and -mtune=native for reproducible builds
|
|
sed -i "s/'-march=native', '-mtune=native',//" meson.build
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
wayland
|
|
wayland-protocols
|
|
libGL
|
|
libglvnd
|
|
freetype
|
|
fontconfig
|
|
cairo
|
|
pango
|
|
libxkbcommon
|
|
sdbus-cpp_2
|
|
systemd
|
|
pipewire
|
|
pam
|
|
curl
|
|
libwebp
|
|
glib
|
|
polkit
|
|
librsvg
|
|
];
|
|
|
|
mesonBuildType = "release";
|
|
|
|
ninjaFlags = [ "-v" ];
|
|
|
|
meta = with lib; {
|
|
description = "A lightweight Wayland shell and bar built directly on Wayland + OpenGL ES";
|
|
homepage = "https://github.com/noctalia-dev/noctalia-shell";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
mainProgram = "noctalia";
|
|
};
|
|
}
|