From ad58b57df7b298bc3e25c578f590d44da3ce36c9 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 17 Jun 2022 19:09:27 +0200 Subject: Initial commit --- packages/dwmbar/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/dwmbar/default.nix (limited to 'packages/dwmbar/default.nix') 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 + ''; +} -- cgit 1.4.1