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 20:43:04 +01:00
}:
2022-11-05 03:24:21 +00:00
buildGoModule rec {
pname = "wallutils";
version = "5.12.5";
2019-04-19 20:43:04 +01:00
src = fetchFromGitHub {
owner = "xyproto";
repo = "wallutils";
rev = version;
hash = "sha256-qC+AF+NFXSrUZAYaiFPwvfZtsAGhKE4XFDOUcfXUAbM=";
2019-04-19 20:43:04 +01:00
};
2022-11-05 03:24:21 +00:00
vendorSha256 = null;
2019-04-19 20:43:04 +01:00
patches = [
./000-add-nixos-dirs-to-default-wallpapers.patch
];
2019-04-19 20:43:04 +01:00
2022-11-05 03:24:21 +00:00
excludedPackages = [
"./pkg/event/cmd" # Development tools
];
nativeBuildInputs = [
pkg-config
];
2019-04-19 20:43:04 +01:00
buildInputs = [
libX11
libXcursor
libXmu
libXpm
libheif
wayland
xbitmaps
];
ldflags = [ "-s" "-w" ];
2019-04-19 20:43:04 +01: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 20:43:04 +01: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 20:43:04 +01:00
};
}