about summary refs log tree commit diff
path: root/packages/dwmbar/default.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-17 19:09:27 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-17 19:09:27 +0200
commitad58b57df7b298bc3e25c578f590d44da3ce36c9 (patch)
tree28be43da790fa014e13a7284e5a5979537a8721a /packages/dwmbar/default.nix
downloadnixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.tar.gz
nixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.tar.bz2
nixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.zip
Initial commit
Diffstat (limited to 'packages/dwmbar/default.nix')
-rw-r--r--packages/dwmbar/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/dwmbar/default.nix b/packages/dwmbar/default.nix
new file mode 100644
index 0000000..340daf1
--- /dev/null
+++ b/packages/dwmbar/default.nix
@@ -0,0 +1,21 @@
+{ stdenv, lib, fetchFromGitHub, bash }:
+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
+    install dwmbar $out/bin/dwmbar
+  '';
+}