2020-03-03 21:40:33 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
|
2019-11-11 19:04:14 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "licensor";
|
2019-12-04 13:15:35 +00:00
|
|
|
version = "2.1.0";
|
2019-11-11 19:04:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raftario";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-12-04 13:15:35 +00:00
|
|
|
sha256 = "0zr8hcq7crmhrdhwcclc0nap68wvg5kqn5l93ha0vn9xgjy8z11p";
|
2019-11-11 19:04:14 +00:00
|
|
|
};
|
|
|
|
|
2020-03-03 21:40:33 +00:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://github.com/raftario/licensor/commit/77ae1ea6d9b6de999ee7590d9dbd3c8465d70bb6.patch";
|
|
|
|
sha256 = "0kfyg06wa2v7swm7hs9kkazjg34mircd4nm4qmljyzjh2yh8icg3";
|
|
|
|
})];
|
|
|
|
|
2020-03-10 21:07:31 +00:00
|
|
|
cargoSha256 = "1z2r8nfizifj8sk1ghppyqk5r65sgmbk47fiq95pnwpadm5drvqa";
|
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;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
|
|
|
}
|