diff options
author | Aaron Jheng <wentworth@outlook.com> | 2022-11-05 03:24:21 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2022-11-05 03:24:21 +0000 |
commit | b090a8c2517c7ee479f2e2a821bae6ec26f0f812 (patch) | |
tree | 04e72f7843af305996d4bfe65ba5544c4aeff75e /pkgs/tools/graphics/wallutils | |
parent | 45b546681874b344a53bdeb01bd41f13a5cfeba0 (diff) | |
download | nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.tar nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.tar.gz nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.tar.bz2 nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.tar.lz nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.tar.xz nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.tar.zst nixpkgs-b090a8c2517c7ee479f2e2a821bae6ec26f0f812.zip |
wallutils: 5.11.1 -> 5.12.4
Diffstat (limited to 'pkgs/tools/graphics/wallutils')
-rw-r--r-- | pkgs/tools/graphics/wallutils/default.nix | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/pkgs/tools/graphics/wallutils/default.nix b/pkgs/tools/graphics/wallutils/default.nix index 8ab6bba1ef1..67c325eb26a 100644 --- a/pkgs/tools/graphics/wallutils/default.nix +++ b/pkgs/tools/graphics/wallutils/default.nix @@ -1,35 +1,56 @@ -{ buildGoPackage, fetchFromGitHub, lib +{ lib +, buildGoModule +, fetchFromGitHub , pkg-config -, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm, libheif +, wayland +, libX11 +, xbitmaps +, libXcursor +, libXmu +, libXpm +, libheif }: -buildGoPackage rec { +buildGoModule rec { pname = "wallutils"; - version = "5.11.1"; + version = "5.12.4"; src = fetchFromGitHub { owner = "xyproto"; repo = "wallutils"; rev = version; - sha256 = "sha256-FL66HALXsf7shoUKIZp6HORyuxhOfgTrY+PQAe92yk8="; + sha256 = "sha256-NODG4Lw/7X1aoT+dDSWxWEbDX6EAQzzDJPwsWOLaJEM="; }; - goPackagePath = "github.com/xyproto/wallutils"; + vendorSha256 = null; patches = [ ./lscollection-Add-NixOS-paths-to-DefaultWallpaperDirectories.patch ]; - postPatch = '' - # VersionString is sometimes not up-to-date: - sed -iE 's/VersionString = "[0-9].[0-9].[0-9]"/VersionString = "${version}"/' wallutils.go - ''; + excludedPackages = [ + "./pkg/event/cmd" # Development tools + ]; + + ldflags = [ "-s" "-w" ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu libXpm libheif ]; + preCheck = + let skippedTests = [ + "TestClosest" # Requiring Wayland or X. + "TestNewSimpleEvent" # Blocking + "TestEveryMinute" # Blocking + ]; in + '' + export XDG_RUNTIME_DIR=`mktemp -d` + + buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]") + ''; + meta = with lib; { description = "Utilities for handling monitors, resolutions, and (timed) wallpapers"; inherit (src.meta) homepage; - license = licenses.mit; + license = licenses.bsd3; maintainers = with maintainers; [ ]; platforms = platforms.linux; }; |