nixpkgs/pkgs/tools/graphics/wallutils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-05 03:24:21 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, libX11
, libXcursor
, libXmu
, libXpm
, libheif
, pkg-config
, wayland
, xbitmaps
2019-04-19 19:43:04 +00:00
}:
2022-11-05 03:24:21 +00:00
buildGoModule rec {
pname = "wallutils";
2023-05-17 02:43:41 +00:00
version = "5.12.7";
2019-04-19 19:43:04 +00:00
src = fetchFromGitHub {
owner = "xyproto";
repo = "wallutils";
rev = version;
2023-05-17 02:43:41 +00:00
hash = "sha256-7UqZr/DEiHDgg3XwvsKk/gc6FNtLh3aj5NWVz/A3J4o=";
2019-04-19 19:43:04 +00:00
};
2023-05-17 02:43:41 +00:00
vendorHash = null;
2019-04-19 19:43:04 +00:00
patches = [
./000-add-nixos-dirs-to-default-wallpapers.patch
];
2019-04-19 19:43:04 +00:00
2022-11-05 03:24:21 +00:00
excludedPackages = [
"./pkg/event/cmd" # Development tools
];
nativeBuildInputs = [
pkg-config
];
2019-04-19 19:43:04 +00:00
buildInputs = [
libX11
libXcursor
libXmu
libXpm
libheif
wayland
xbitmaps
];
ldflags = [ "-s" "-w" ];
2019-04-19 19:43:04 +00:00
2022-11-05 03:24:21 +00:00
preCheck =
let skippedTests = [
"TestClosest" # Requiring Wayland or X
2022-11-05 03:24:21 +00:00
"TestEveryMinute" # Blocking
"TestNewSimpleEvent" # Blocking
2022-11-05 03:24:21 +00:00
]; in
''
export XDG_RUNTIME_DIR=`mktemp -d`
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
'';
meta = {
2019-04-19 19:43:04 +00:00
description = "Utilities for handling monitors, resolutions, and (timed) wallpapers";
inherit (src.meta) homepage;
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.AndersonTorres ];
inherit (wayland.meta) platforms;
badPlatforms = lib.platforms.darwin;
2019-04-19 19:43:04 +00:00
};
}