2022-02-09 08:46:32 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2019-11-11 19:04:14 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "licensor";
|
2021-02-03 16:18:43 +00:00
|
|
|
version = "unstable-2021-02-03";
|
2019-11-11 19:04:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raftario";
|
|
|
|
repo = pname;
|
2021-02-03 16:18:43 +00:00
|
|
|
rev = "1897882a708ec6ed65a9569ae0e07d6ea576c652";
|
|
|
|
sha256 = "0x0lkfrj7jka0p6nx6i9syz0bnzya5z9np9cw09zm1c9njv9mm32";
|
2019-11-11 19:04:14 +00:00
|
|
|
};
|
|
|
|
|
2024-07-03 12:29:10 +00:00
|
|
|
cargoHash = "sha256-gEOMOb2VRx0cFnzmfKBh9W1FoI4Nr7/PW4GQnldoxsA=";
|
2019-11-11 19:04:14 +00:00
|
|
|
|
2023-01-19 18:16:21 +00:00
|
|
|
# https://github.com/raftario/licensor/issues/67
|
|
|
|
postPatch = ''
|
|
|
|
sed "/Copyright (c) 2021/s/2021/$(date +%Y)/" -i tests/integration.rs
|
|
|
|
'';
|
2022-02-09 08:46:32 +00:00
|
|
|
|
2019-11-11 19:04:14 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Write licenses to stdout";
|
|
|
|
homepage = "https://github.com/raftario/licensor";
|
|
|
|
license = licenses.mit;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2021-10-08 19:40:18 +00:00
|
|
|
mainProgram = "licensor";
|
2019-11-11 19:04:14 +00:00
|
|
|
};
|
|
|
|
}
|