mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
dwm-status: add xsetroot and alsaUtils as runtime deps
This commit is contained in:
parent
45af94bfb9
commit
4d48694901
@ -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 {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "dwm-status-${version}";
|
name = "dwm-status-${version}";
|
||||||
@ -11,15 +16,16 @@ rustPlatform.buildRustPackage rec {
|
|||||||
sha256 = "0nw0iz78mnrmgpc471yjv7yzsaf7346mwjp6hm5kbsdclvrdq9d7";
|
sha256 = "0nw0iz78mnrmgpc471yjv7yzsaf7346mwjp6hm5kbsdclvrdq9d7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
||||||
dbus
|
buildInputs = [ dbus gdk_pixbuf libnotify ];
|
||||||
gdk_pixbuf
|
|
||||||
libnotify
|
|
||||||
pkgconfig
|
|
||||||
];
|
|
||||||
|
|
||||||
cargoSha256 = "0169k91pb7ipvi0m71cmkppp1klgp5ghampa7x0fxkyrvrf0dvqg";
|
cargoSha256 = "0169k91pb7ipvi0m71cmkppp1klgp5ghampa7x0fxkyrvrf0dvqg";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/dwm-status \
|
||||||
|
--prefix "PATH" : "${stdenv.lib.makeBinPath runtimeDeps}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "DWM status service which dynamically updates when needed";
|
description = "DWM status service which dynamically updates when needed";
|
||||||
homepage = https://github.com/Gerschtli/dwm-status;
|
homepage = https://github.com/Gerschtli/dwm-status;
|
||||||
|
Loading…
Reference in New Issue
Block a user