diff --git a/pkgs/dwm-msg/default.nix b/pkgs/dwm-msg/default.nix new file mode 100644 index 0000000..b7161b9 --- /dev/null +++ b/pkgs/dwm-msg/default.nix @@ -0,0 +1,44 @@ +# Yoinky Sploinky https://git.nullcube.net/nullcube/nullpkgs/src/branch/main/pkgs/dwm-msg/default.nix +{ lib +, stdenv +, fetchFromGitHub +, libX11 +, libXft +, libXinerama +, pkg-config +, yajl +, +}: + +stdenv.mkDerivation rec { + pname = "dwm-msg"; + version = "1.5.7"; + + src = fetchFromGitHub { + owner = "mihirlad55"; + repo = "dwm-ipc"; + rev = "v${version}"; + hash = "sha256-ReQbA551i6YOQi/Qoive7jANnD5/IcXGApHHctgPdOM="; + }; + + nativeBuildInputs = [ + pkg-config + libX11 + libXinerama + libXft + yajl + ]; + + installPhase = '' + mkdir -p $out/bin + cp dwm-msg $out/bin/ + ''; + + meta = with lib; { + description = "a cli program that can be used to run commands, query dwm for information, and listen for events."; + homepage = "https://github.com/mihirlad55/dwm-ipc"; + license = licenses.mit; + # platforms = platforms.all; + mainProgram = "dwm-msg"; + }; +}