Files
nixpkgs/pkgs/by-name/wa/wallutils/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

78 lines
1.3 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
libX11,
libXcursor,
libXmu,
libXpm,
libheif,
pkg-config,
wayland,
xbitmaps,
}:
buildGoModule (finalAttrs: {
pname = "wallutils";
version = "5.14.2";
src = fetchFromGitHub {
owner = "xyproto";
repo = "wallutils";
tag = "v${finalAttrs.version}";
hash = "sha256-mcleLQIBG8L5cpA4QYZpDsBdZbJlyDx7XXwDtAV4sjU=";
};
vendorHash = null;
patches = [
./000-add-nixos-dirs-to-default-wallpapers.patch
];
excludedPackages = [
"./pkg/event/cmd" # Development tools
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libX11
libXcursor
libXmu
libXpm
libheif
wayland
xbitmaps
];
ldflags = [
"-s"
"-w"
];
preCheck = ''
export XDG_RUNTIME_DIR=$(mktemp -d)
'';
checkFlags =
let
skippedTests = [
"TestClosest" # Requiring Wayland or X
"TestEveryMinute" # Blocking
"TestNewSimpleEvent" # Blocking
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
meta = {
description = "Utilities for handling monitors, resolutions, and (timed) wallpapers";
inherit (finalAttrs.src.meta) homepage;
license = lib.licenses.bsd3;
maintainers = [ ];
inherit (wayland.meta) platforms;
badPlatforms = lib.platforms.darwin;
};
})