diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2023-01-22 03:55:50 +0100 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2023-01-22 03:55:50 +0100 |
commit | 73e9c838f7eb270063d87d96a52c4b24f49a8c6d (patch) | |
tree | 017f8e9163dd532d87bbeb5ed0bfbd7c1ea16538 /pkgs/applications/window-managers/miriway | |
parent | da5b47eba8ad4ad30dbc0de17dd1f64ccc07f0f3 (diff) |
miriway: init at unstable-2022-12-18
Diffstat (limited to 'pkgs/applications/window-managers/miriway')
-rw-r--r-- | pkgs/applications/window-managers/miriway/default.nix | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/miriway/default.nix b/pkgs/applications/window-managers/miriway/default.nix new file mode 100644 index 0000000000000..48378eda67b84 --- /dev/null +++ b/pkgs/applications/window-managers/miriway/default.nix @@ -0,0 +1,76 @@ +{ stdenv +, lib +, fetchFromGitHub +, unstableGitUpdater +, cmake +, pkg-config +, mir +, libxkbcommon +}: + +stdenv.mkDerivation rec { + pname = "miriway"; + version = "unstable-2022-12-18"; + + src = fetchFromGitHub { + owner = "Miriway"; + repo = "Miriway"; + rev = "d294c303cb99b7becb0d6686be9a09f0a1f57596"; + hash = "sha256-H+IZgI1IQxNl5yAygbDKXkyXajGHV/mp9gEqZcp0TeE="; + }; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace "\''${CMAKE_INSTALL_PREFIX}/bin" "\''${CMAKE_INSTALL_BINDIR}" \ + --replace "/usr/share" "\''${CMAKE_INSTALL_DATADIR}" \ + --replace "/etc" "\''${CMAKE_INSTALL_SYSCONFDIR}" + + sed -i -e '/project(/a include(GNUInstallDirs)' CMakeLists.txt + ''; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + mir + libxkbcommon + ]; + + passthru = { + updateScript = unstableGitUpdater { }; + providedSessions = [ "miriway" ]; + }; + + meta = with lib; { + 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 = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [ OPNA2608 ]; + }; +} |