nixpkgs/pkgs/tools/misc/licensor/default.nix
Evan Stoll 75a4bdc28c licensor: "Fix" integration test for 2021
* Use latest version from master (as of 2021-02-03)
  * Apply patch from https://github.com/raftario/licensor/pull/28 that
    "fixes" the `license_and_name` test by bumping the year from 2020
    to 2021, until the test implementation can be properly addressed

  * This also includes a security update from
    https://github.com/raftario/licensor/pull/8

  * Instead of adding 2 more patches (one for the test fix, one for the
    security update), using the latest commit from master seems to make
    the most sense for now

  * remove fetchpatch from inputs
2021-02-03 13:42:10 -05:00

23 lines
613 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "licensor";
version = "unstable-2021-02-03";
src = fetchFromGitHub {
owner = "raftario";
repo = pname;
rev = "1897882a708ec6ed65a9569ae0e07d6ea576c652";
sha256 = "0x0lkfrj7jka0p6nx6i9syz0bnzya5z9np9cw09zm1c9njv9mm32";
};
cargoSha256 = "1yix40351yasg7mjmz7qwvwh1dq292dv47gy2a3bwkzhcn6whyjf";
meta = with lib; {
description = "Write licenses to stdout";
homepage = "https://github.com/raftario/licensor";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne ];
};
}