Files
nixpkgs/pkgs/by-name/dw/dwlb/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

76 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
pkg-config,
wayland,
wayland-scanner,
wayland-protocols,
unstableGitUpdater,
pixman,
fcft,
writeText,
# Boolean flags
withCustomConfigH ? (configH != null),
# Configurable options
configH ? null,
}:
stdenv.mkDerivation {
pname = "dwlb";
version = "0-unstable-2025-05-20";
src = fetchFromGitHub {
owner = "kolunmi";
repo = "dwlb";
rev = "48dbe00bdb98a1ae6a0e60558ce14503616aa759";
hash = "sha256-S0jkoELkF+oEmXqiWZ8KJYtWAHEXR/Y93jl5yHgUuSM=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
wayland-scanner
wayland-protocols
pixman
fcft
wayland
];
# Allow alternative config.def.h usage. Taken from dwl.nix.
postPatch =
let
configFile =
if lib.isDerivation configH || builtins.isPath configH then
configH
else
writeText "config.h" configH;
in
lib.optionalString withCustomConfigH "cp ${configFile} config.h";
env = {
PREFIX = placeholder "out";
};
outputs = [
"out"
"man"
];
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Fast, feature-complete bar for dwl";
homepage = "https://github.com/kolunmi/dwlb";
license = lib.licenses.gpl3Plus;
mainProgram = "dwlb";
maintainers = with lib.maintainers; [
bot-wxt1221
lonyelon
];
platforms = wayland.meta.platforms;
};
}