depot/third_party/nixpkgs/pkgs/applications/misc/dwmbar/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
961 B
Nix

{ stdenv
, lib
, fetchFromGitHub
}:
stdenv.mkDerivation {
pname = "dwmbar";
version = "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";
};
}