From 9f3e0b28d0e92846bbb83153b59563d5e35f61e7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 9 Feb 2022 09:46:32 +0100 Subject: [PATCH] licensor: add patch to fix tests --- pkgs/tools/misc/licensor/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/licensor/default.nix b/pkgs/tools/misc/licensor/default.nix index 93983c8fe40b..510a169f2150 100644 --- a/pkgs/tools/misc/licensor/default.nix +++ b/pkgs/tools/misc/licensor/default.nix @@ -1,4 +1,8 @@ -{ lib, rustPlatform, fetchFromGitHub }: +{ lib +, fetchFromGitHub +, fetchpatch +, rustPlatform +}: rustPlatform.buildRustPackage rec { pname = "licensor"; @@ -13,6 +17,15 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1h66d1brx441bg7vzbqdish4avgmc6h7rrkw2qf1siwmplwqqhw0"; + patches = [ + # Support for 2022, https://github.com/raftario/licensor/pull/68 + (fetchpatch { + name = "support-for-2022.patch"; + url = "https://github.com/raftario/licensor/commit/6b2f248e5ad9e454fe30d71397691e47ac69b19e.patch"; + sha256 = "sha256-kXiY5s2kuU+ibV3RpBoy7y3cmJU+gECBTsmRXWBOTP8="; + }) + ]; + meta = with lib; { description = "Write licenses to stdout"; homepage = "https://github.com/raftario/licensor";