licensor: fix tests, this time in a longterm way

This commit is contained in:
Vladimír Čunát 2023-01-19 19:16:21 +01:00
parent 00ae4c7fc4
commit 5054a30632
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -17,14 +17,10 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1h66d1brx441bg7vzbqdish4avgmc6h7rrkw2qf1siwmplwqqhw0"; cargoSha256 = "1h66d1brx441bg7vzbqdish4avgmc6h7rrkw2qf1siwmplwqqhw0";
patches = [ # https://github.com/raftario/licensor/issues/67
# Support for 2022, https://github.com/raftario/licensor/pull/68 postPatch = ''
(fetchpatch { sed "/Copyright (c) 2021/s/2021/$(date +%Y)/" -i tests/integration.rs
name = "support-for-2022.patch"; '';
url = "https://github.com/raftario/licensor/commit/6b2f248e5ad9e454fe30d71397691e47ac69b19e.patch";
sha256 = "sha256-kXiY5s2kuU+ibV3RpBoy7y3cmJU+gECBTsmRXWBOTP8=";
})
];
meta = with lib; { meta = with lib; {
description = "Write licenses to stdout"; description = "Write licenses to stdout";