nixos-config/modules/nixos/workflows/mosey-branch/config/desktop-session/default.nix
Gabriel Arazas 0225342a05
workflows/mosey-branch: create desktop session files package
This should make it easier to manage the custom desktop files with the
usual toolchain for configuring and installing custom desktop files
(i.e., Meson). While this could be done with Nix, some parts of
installing files is easier with Meson.

Who knows, it might be reverted because my Nix-fu is pretty weak right
now.
2023-08-12 15:46:03 +08:00

37 lines
748 B
Nix

{ stdenv
, lib
, meson
, ninja
, pkg-config
# This is the prefix used for the installed files in the output.
, prefix ? "one.foodogsquared.MoseyBranch"
, serviceScript ? "Hyprland"
, sessionScript ? "gnome-session --session=mosey-branch"
}:
stdenv.mkDerivation rec {
pname = "mosey-branch-custom-desktop-session";
version = "2023-08-11";
src = ./.;
nativeBulidInputs = [
meson
ninja
pkg-config
];
mesonFlags = [
"-Dsession_script=${sessionScript}"
"-Dservice_script=${serviceScript}"
];
passthru.providedSessions = [ "mosey-branch" ];
meta = with lib; {
description = "Custom desktop files for the custom desktop environment";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}