diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-01 23:46:59 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-01 23:46:59 +0200 |
commit | 0cdd0fadac002ac70662bc4d8ec25a2e0dd8dd46 (patch) | |
tree | 1aebb393e5e84b4fdcc568eae046ef504e9b768c /packages | |
parent | Phobos: Use zen kernel (diff) | |
download | nixos-config-0cdd0fadac002ac70662bc4d8ec25a2e0dd8dd46.tar.gz nixos-config-0cdd0fadac002ac70662bc4d8ec25a2e0dd8dd46.tar.bz2 nixos-config-0cdd0fadac002ac70662bc4d8ec25a2e0dd8dd46.zip |
Packages: dwmbar: Repackage dwmbar to not need patches
Diffstat (limited to 'packages')
-rw-r--r-- | packages/dwmbar/default.nix | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/packages/dwmbar/default.nix b/packages/dwmbar/default.nix index 340daf1..1704b9d 100644 --- a/packages/dwmbar/default.nix +++ b/packages/dwmbar/default.nix @@ -1,21 +1,26 @@ -{ stdenv, lib, fetchFromGitHub, bash }: +{ stdenv +, lib +, fetchFromGitHub +}: + stdenv.mkDerivation { pname = "dwmbar"; version = "1.0"; + src = fetchFromGitHub { owner = "thytom"; repo = "dwmbar"; rev = "574f5703c558a56bc9c354471543511255423dc7"; sha256 = "sha256-IrelZpgsxq2dnsjMdh7VC5eKffEGRbDkZmZBD+tROPs="; }; - patches = [ ../../patches/dwmbar.patch ]; - buildInputs = [ bash ]; + installPhase = '' mkdir -p $out/bin - mkdir -p $out/bin/_dwmbar/modules - cp -r modules $out/bin/_dwmbar/ - install config $out/bin/_dwmbar/config - install bar.sh $out/bin/_dwmbar/bar.sh + mkdir -p $out/config + cp -r modules/ $out/config/ + install config $out/config/config + install bar.sh $out/config/bar.sh + substituteInPlace dwmbar --replace 'DEFAULT_CONFIG_DIR="/usr/share/dwmbar"' "DEFAULT_CONFIG_DIR=\"$out/config\"" install dwmbar $out/bin/dwmbar ''; } |