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
40 lines
968 B
Nix
40 lines
968 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "dwmbar";
|
|
version = "0-unstable-2021-12-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thytom";
|
|
repo = "dwmbar";
|
|
rev = "574f5703c558a56bc9c354471543511255423dc7";
|
|
sha256 = "sha256-IrelZpgsxq2dnsjMdh7VC5eKffEGRbDkZmZBD+tROPs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace dwmbar \
|
|
--replace 'DEFAULT_CONFIG_DIR="/usr/share/dwmbar"' "DEFAULT_CONFIG_DIR=\"$out/share/dwmbar\""
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -d $out/share/dwmbar
|
|
cp -r modules $out/share/dwmbar/
|
|
install -D -t $out/share/dwmbar/ config
|
|
install -D -t $out/share/dwmbar/ bar.sh
|
|
install -Dm755 -t $out/bin/ dwmbar
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/thytom/dwmbar";
|
|
description = "Modular Status Bar for dwm";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ baitinq ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "dwmbar";
|
|
};
|
|
}
|