Files
nixpkgs/pkgs/by-name/mi/miriway/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

95 lines
2.5 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
gitUpdater,
nixosTests,
bash,
boost,
cmake,
inotify-tools,
pkg-config,
mir,
libxkbcommon,
swaybg,
wayland,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "miriway";
version = "25.11";
src = fetchFromGitHub {
owner = "Miriway";
repo = "Miriway";
tag = "v${finalAttrs.version}";
hash = "sha256-tXxRKGP/MMXOD1QtOYj5E9IurLoUUu1JBg8+l5z0KCQ=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'DESTINATION /usr/lib/systemd' 'DESTINATION ''${CMAKE_INSTALL_LIBDIR}/systemd'
'';
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
bash
boost
mir
libxkbcommon
wayland # wayland-server.pc, for mirwayland.pc
];
postInstall = ''
substituteInPlace $out/bin/miriway-background \
--replace-fail 'exec swaybg' 'exec ${lib.getExe swaybg}'
substituteInPlace $out/bin/miriway-run \
--replace-fail 'inotifywait -qq' '${lib.getExe' inotify-tools "inotifywait"} -qq'
'';
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
providedSessions = [ "miriway" ];
tests = {
inherit (nixosTests) miriway;
};
};
meta = {
description = "Mir based Wayland compositor";
longDescription = ''
Miriway is a starting point for creating a Wayland based desktop environment using Mir.
At the core of Miriway is miriway-shell, a Mir based Wayland compositor that provides:
- A "floating windows" window managament policy;
- Support for Wayland (and via Xwayland) X11 applications;
- Dynamic workspaces;
- Additional Wayland support for "shell components" such as panels and docs; and,
- Configurable shortcuts for launching standard apps such as launcher and terminal emulator.
In addition to miriway-shell, Miriway has:
- A "terminal emulator finder" script miriway-terminal, that works with most terminal emulators;
- A launch script miriway to simplify starting Miriway;
- A default configuration file miriway-shell.config; and,
- A greeter configuration miriway.desktop so Miriway can be selected at login
Miriway has been tested with shell components from several desktop environments and there are notes on
enabling these in miriway-shell.config.
'';
homepage = "https://github.com/Miriway/Miriway";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
mainProgram = "miriway";
maintainers = with lib.maintainers; [ OPNA2608 ];
};
})