dwm-status: 0.4.0 -> 0.5.1
This commit is contained in:
parent
07d23845c3
commit
9d59cc9880
1 changed files with 7 additions and 11 deletions
|
@ -1,29 +1,25 @@
|
||||||
{ stdenv, lib, rustPlatform, fetchFromGitHub, dbus, gdk_pixbuf, libnotify, makeWrapper, pkgconfig, xorg, alsaUtils }:
|
{ 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}";
|
||||||
version = "0.4.0";
|
version = "0.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Gerschtli";
|
owner = "Gerschtli";
|
||||||
repo = "dwm-status";
|
repo = "dwm-status";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0nw0iz78mnrmgpc471yjv7yzsaf7346mwjp6hm5kbsdclvrdq9d7";
|
sha256 = "1mppj57h5yr0azypf5d2cgz2wv3k52mg3k4npyfhbmfy1393qbjs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
||||||
buildInputs = [ dbus gdk_pixbuf libnotify ];
|
buildInputs = [ dbus gdk_pixbuf libnotify xorg.libX11 ];
|
||||||
|
|
||||||
cargoSha256 = "0169k91pb7ipvi0m71cmkppp1klgp5ghampa7x0fxkyrvrf0dvqg";
|
cargoSha256 = "0qr999hwrqn7a4n4kvbrpli7shxp9jchj8csxzsw951qmzq32qwv";
|
||||||
|
|
||||||
postInstall = ''
|
# needed because alsaUtils is an optional runtime dependency
|
||||||
|
postInstall = lib.optionalString (alsaUtils != null) ''
|
||||||
wrapProgram $out/bin/dwm-status \
|
wrapProgram $out/bin/dwm-status \
|
||||||
--prefix "PATH" : "${stdenv.lib.makeBinPath runtimeDeps}"
|
--prefix "PATH" : "${alsaUtils}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue