mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Another saturday another useless formatter change. It's my dotfiles, after all alejandra doesn't handle c-style inline comments well.
41 lines
994 B
Nix
41 lines
994 B
Nix
{ pkgs, ... }:
|
|
{
|
|
home.packages =
|
|
let
|
|
inherit (pkgs) lib;
|
|
|
|
ghc = pkgs.haskellPackages.ghc.withPackages (haskellPackages: [
|
|
haskellPackages.xmobar
|
|
]);
|
|
|
|
wrapped-xmobar = pkgs.symlinkJoin {
|
|
name = "xmobar";
|
|
paths = [ pkgs.xmobar ];
|
|
buildInputs = [ pkgs.makeWrapper ];
|
|
postBuild = ''
|
|
wrapProgram $out/bin/xmobar \
|
|
--prefix PATH : "${
|
|
lib.makeBinPath [
|
|
ghc
|
|
pkgs.libnotify
|
|
]
|
|
}"
|
|
'';
|
|
};
|
|
in
|
|
[
|
|
wrapped-xmobar
|
|
];
|
|
|
|
xdg.configFile = {
|
|
"xmobar" = {
|
|
# Xmobar uses the directory to compile too,
|
|
# Linking the entire folder directly would make the directory not writable
|
|
#
|
|
# Just relink the file if you want to debug it quickly
|
|
# We need to clean up the xmobar executable so it recompiles (it's copied to store)
|
|
recursive = true;
|
|
source = "${./xmobar}";
|
|
};
|
|
};
|
|
}
|