Skip to content

Commit

Permalink
Merge pull request #158762 from fabaff/fix-licensor
Browse files Browse the repository at this point in the history
licensor: add patch to fix tests
  • Loading branch information
fabaff committed Feb 10, 2022
2 parents 8429cc4 + 9f3e0b2 commit 2858668
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkgs/tools/misc/licensor/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib
, fetchFromGitHub
, fetchpatch
, rustPlatform
}:

rustPlatform.buildRustPackage rec {
pname = "licensor";
Expand All @@ -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";
Expand Down

0 comments on commit 2858668

Please sign in to comment.