mandown: adopt and modernize (#392575)

authored by

Gaétan Lepage and committed by
GitHub
b6e9736a 1c2f1b30

+9 -7
+9 -7
pkgs/by-name/ma/mandown/package.nix
··· 2 2 lib, 3 3 rustPlatform, 4 4 fetchCrate, 5 + nix-update-script, 5 6 }: 6 - 7 - rustPlatform.buildRustPackage rec { 7 + rustPlatform.buildRustPackage (finalAttrs: { 8 8 pname = "mandown"; 9 9 version = "1.1.0"; 10 10 11 11 src = fetchCrate { 12 - inherit pname version; 12 + inherit (finalAttrs) pname version; 13 13 hash = "sha256-a+1tm9YlBuroTtgCL0nTjASaPiJHif89pRH0CWw7RjM="; 14 14 }; 15 15 16 16 useFetchCargoVendor = true; 17 17 cargoHash = "sha256-ZyjoAvsqUyHgfEsG3+CvJatmBt0AJ2ga6HRJ8Y7her0="; 18 18 19 - meta = with lib; { 19 + passthru.updateScript = nix-update-script { }; 20 + 21 + meta = { 20 22 description = "Markdown to groff (man page) converter"; 21 23 homepage = "https://gitlab.com/kornelski/mandown"; 22 - license = with licenses; [ 24 + license = with lib.licenses; [ 23 25 asl20 # or 24 26 mit 25 27 ]; 26 - maintainers = [ ]; 28 + maintainers = [ lib.maintainers.awwpotato ]; 27 29 mainProgram = "mandown"; 28 30 }; 29 - } 31 + })