Files
nixpkgs/pkgs/by-name/dw/dwm-status/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.5 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
dbus,
gdk-pixbuf,
libnotify,
makeWrapper,
pkg-config,
libX11,
enableAlsaUtils ? true,
alsa-utils,
coreutils,
enableNetwork ? true,
dnsutils,
iproute2,
wirelesstools,
nix-update-script,
}:
let
bins =
lib.optionals enableAlsaUtils [
alsa-utils
coreutils
]
++ lib.optionals enableNetwork [
dnsutils
iproute2
wirelesstools
];
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dwm-status";
version = "1.10.0";
src = fetchFromGitHub {
owner = "Gerschtli";
repo = "dwm-status";
tag = finalAttrs.version;
hash = "sha256-982JFYZroskKppAOZjBWOFt624FfRjhXpYN57s/cM50=";
};
nativeBuildInputs = [
makeWrapper
pkg-config
];
buildInputs = [
dbus
gdk-pixbuf
libnotify
libX11
];
cargoHash = "sha256-2/zzE6JzhqeBYLiRkx5ELaW150rk1bMTrpxSw/wxNes=";
postInstall = lib.optionalString (bins != [ ]) ''
wrapProgram $out/bin/dwm-status --prefix "PATH" : "${lib.makeBinPath bins}"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Highly performant and configurable DWM status service";
homepage = "https://github.com/Gerschtli/dwm-status";
changelog = "https://github.com/Gerschtli/dwm-status/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
gepbird
gerschtli
];
mainProgram = "dwm-status";
platforms = lib.platforms.linux;
};
})