mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
Gabriel Arazas
0225342a05
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.
37 lines
748 B
Nix
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;
|
|
};
|
|
}
|