2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "licensor";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "unstable-2021-02-03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raftario";
|
|
|
|
repo = pname;
|
2021-02-05 17:12:51 +00:00
|
|
|
rev = "1897882a708ec6ed65a9569ae0e07d6ea576c652";
|
|
|
|
sha256 = "0x0lkfrj7jka0p6nx6i9syz0bnzya5z9np9cw09zm1c9njv9mm32";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1h66d1brx441bg7vzbqdish4avgmc6h7rrkw2qf1siwmplwqqhw0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# https://github.com/raftario/licensor/issues/67
|
|
|
|
postPatch = ''
|
|
|
|
sed "/Copyright (c) 2021/s/2021/$(date +%Y)/" -i tests/integration.rs
|
|
|
|
'';
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Write licenses to stdout";
|
|
|
|
homepage = "https://github.com/raftario/licensor";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2021-10-09 14:59:57 +00:00
|
|
|
mainProgram = "licensor";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|