2021-01-25 08:26:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
dbus,
|
|
|
|
gdk-pixbuf,
|
|
|
|
libnotify,
|
|
|
|
makeWrapper,
|
|
|
|
pkg-config,
|
|
|
|
xorg,
|
2021-06-10 04:10:52 +00:00
|
|
|
enableAlsaUtils ? true,
|
|
|
|
alsa-utils,
|
|
|
|
coreutils,
|
2021-03-14 16:05:16 +00:00
|
|
|
enableNetwork ? true,
|
|
|
|
dnsutils,
|
|
|
|
iproute2,
|
|
|
|
wirelesstools,
|
|
|
|
}:
|
2018-12-01 16:03:40 +00:00
|
|
|
|
|
|
|
let
|
2021-06-10 04:10:52 +00:00
|
|
|
bins =
|
|
|
|
lib.optionals enableAlsaUtils [
|
|
|
|
alsa-utils
|
|
|
|
coreutils
|
|
|
|
]
|
2021-03-14 16:05:16 +00:00
|
|
|
++ lib.optionals enableNetwork [
|
|
|
|
dnsutils
|
|
|
|
iproute2
|
|
|
|
wirelesstools
|
|
|
|
];
|
2018-12-01 16:03:40 +00:00
|
|
|
in
|
2018-06-10 23:57:59 +00:00
|
|
|
|
2018-06-10 22:24:13 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "dwm-status";
|
2022-12-21 22:10:17 +00:00
|
|
|
version = "1.8.1";
|
2018-06-10 22:24:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gerschtli";
|
2021-05-08 05:05:15 +00:00
|
|
|
repo = pname;
|
2021-05-08 14:55:30 +00:00
|
|
|
rev = version;
|
2022-12-21 22:10:17 +00:00
|
|
|
sha256 = "sha256-GkTPEmsnHFLUvbasAOXOQjFKs1Y9aaG87uyPvnQaT8Y=";
|
2018-06-10 22:24:13 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
|
|
|
];
|
2019-05-22 11:03:39 +00:00
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
gdk-pixbuf
|
|
|
|
libnotify
|
|
|
|
xorg.libX11
|
|
|
|
];
|
2018-06-10 22:24:13 +00:00
|
|
|
|
2024-07-02 09:04:59 +00:00
|
|
|
cargoHash = "sha256-eRfXUnyzOfVSEiwjLCaNbETUPXVU2Ed2VUNM9FjS5YE=";
|
2018-06-10 22:24:13 +00:00
|
|
|
|
2018-12-27 18:58:43 +00:00
|
|
|
postInstall = lib.optionalString (bins != [ ]) ''
|
2021-01-15 13:21:58 +00:00
|
|
|
wrapProgram $out/bin/dwm-status --prefix "PATH" : "${lib.makeBinPath bins}"
|
2018-06-10 23:57:59 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-28 11:10:37 +00:00
|
|
|
description = "Highly performant and configurable DWM status service";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Gerschtli/dwm-status";
|
2022-12-21 22:29:32 +00:00
|
|
|
changelog = "https://github.com/Gerschtli/dwm-status/blob/master/CHANGELOG.md";
|
2018-06-10 22:24:13 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
2023-12-20 02:45:17 +00:00
|
|
|
mainProgram = "dwm-status";
|
2018-06-10 22:24:13 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|