nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 32 lines 807 B view raw
1{ lib 2, fetchFromGitHub 3, fetchpatch 4, rustPlatform 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "licensor"; 9 version = "unstable-2021-02-03"; 10 11 src = fetchFromGitHub { 12 owner = "raftario"; 13 repo = pname; 14 rev = "1897882a708ec6ed65a9569ae0e07d6ea576c652"; 15 sha256 = "0x0lkfrj7jka0p6nx6i9syz0bnzya5z9np9cw09zm1c9njv9mm32"; 16 }; 17 18 cargoSha256 = "1h66d1brx441bg7vzbqdish4avgmc6h7rrkw2qf1siwmplwqqhw0"; 19 20 # https://github.com/raftario/licensor/issues/67 21 postPatch = '' 22 sed "/Copyright (c) 2021/s/2021/$(date +%Y)/" -i tests/integration.rs 23 ''; 24 25 meta = with lib; { 26 description = "Write licenses to stdout"; 27 homepage = "https://github.com/raftario/licensor"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ Br1ght0ne ]; 30 mainProgram = "licensor"; 31 }; 32}