diff options
author | Tobias Happ <tobias.happ@gmx.de> | 2018-06-11 01:57:59 +0200 |
---|---|---|
committer | Tobias Happ <tobias.happ@gmx.de> | 2018-06-11 03:26:11 +0200 |
commit | 4d486949019bf51691228a09ee21cbab69982dc4 (patch) | |
tree | 18ded971972605d7e75874c08c0aaf11a6209552 /pkgs/applications/window-managers/dwm | |
parent | 45af94bfb97d5540641d25fb4385e74f04208a39 (diff) |
dwm-status: add xsetroot and alsaUtils as runtime deps
Diffstat (limited to 'pkgs/applications/window-managers/dwm')
-rw-r--r-- | pkgs/applications/window-managers/dwm/dwm-status.nix | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/applications/window-managers/dwm/dwm-status.nix b/pkgs/applications/window-managers/dwm/dwm-status.nix index a8d69987e337..4a46d4ef7ba8 100644 --- a/pkgs/applications/window-managers/dwm/dwm-status.nix +++ b/pkgs/applications/window-managers/dwm/dwm-status.nix @@ -1,4 +1,9 @@ -{ stdenv, rustPlatform, fetchFromGitHub, dbus, gdk_pixbuf, libnotify, pkgconfig }: +{ stdenv, lib, rustPlatform, fetchFromGitHub, dbus, gdk_pixbuf, libnotify, makeWrapper, pkgconfig, xorg, alsaUtils }: + +let + runtimeDeps = [ xorg.xsetroot ] + ++ lib.optional (alsaUtils != null) alsaUtils; +in rustPlatform.buildRustPackage rec { name = "dwm-status-${version}"; @@ -11,15 +16,16 @@ rustPlatform.buildRustPackage rec { sha256 = "0nw0iz78mnrmgpc471yjv7yzsaf7346mwjp6hm5kbsdclvrdq9d7"; }; - buildInputs = [ - dbus - gdk_pixbuf - libnotify - pkgconfig - ]; + nativeBuildInputs = [ makeWrapper pkgconfig ]; + buildInputs = [ dbus gdk_pixbuf libnotify ]; cargoSha256 = "0169k91pb7ipvi0m71cmkppp1klgp5ghampa7x0fxkyrvrf0dvqg"; + postInstall = '' + wrapProgram $out/bin/dwm-status \ + --prefix "PATH" : "${stdenv.lib.makeBinPath runtimeDeps}" + ''; + meta = with stdenv.lib; { description = "DWM status service which dynamically updates when needed"; homepage = https://github.com/Gerschtli/dwm-status; |