Merge pull request #189354 from Baitinq/dwmbar

This commit is contained in:
Sandro 2022-09-02 12:05:32 +02:00 committed by GitHub
commit ed8347c884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ 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 = "A Modular Status Bar for dwm";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ baitinq ];
platforms = platforms.linux;
};
}

View file

@ -27003,6 +27003,8 @@ with pkgs;
dwmblocks = callPackage ../applications/misc/dwmblocks { };
dwmbar = callPackage ../applications/misc/dwmbar { };
dwm-status = callPackage ../applications/window-managers/dwm/dwm-status.nix { };
exploitdb = callPackage ../tools/security/exploitdb { };