diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-01-28 08:30:38 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-01-28 08:30:38 +0100 |
commit | c71193894e15cace4a47a1affb8fafe9fff909c8 (patch) | |
tree | e96ad204cae72079799b40de0977c89f87dd390f | |
parent | 05244906b26be69d75bc1cec9490ca0a36aaa87e (diff) | |
parent | 5054a306323053e33143323d23cb025266c4bc2b (diff) |
Merge #211625: licensor: fix tests, this time in a longterm way
-rw-r--r-- | pkgs/tools/misc/licensor/default.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/tools/misc/licensor/default.nix b/pkgs/tools/misc/licensor/default.nix index 510a169f21506..8a81286eebbe6 100644 --- a/pkgs/tools/misc/licensor/default.nix +++ b/pkgs/tools/misc/licensor/default.nix @@ -17,14 +17,10 @@ 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="; - }) - ]; + # https://github.com/raftario/licensor/issues/67 + postPatch = '' + sed "/Copyright (c) 2021/s/2021/$(date +%Y)/" -i tests/integration.rs + ''; meta = with lib; { description = "Write licenses to stdout"; |