nixdoc: modernize (#406152)

authored by Wolfgang Walther and committed by GitHub dbaabd27 7d5a7afb

+8 -8
+8 -8
pkgs/by-name/ni/nixdoc/package.nix
··· 4 4 rustPlatform, 5 5 }: 6 6 7 - rustPlatform.buildRustPackage rec { 7 + rustPlatform.buildRustPackage (finalAttrs: { 8 8 pname = "nixdoc"; 9 9 version = "3.1.0"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "nix-community"; 13 13 repo = "nixdoc"; 14 - rev = "v${version}"; 15 - sha256 = "sha256-7UOjmW8Ef4mEvj7SINaKWh2ZuyNMVEXB82mtuZTQiPA="; 14 + tag = "v${finalAttrs.version}"; 15 + hash = "sha256-7UOjmW8Ef4mEvj7SINaKWh2ZuyNMVEXB82mtuZTQiPA="; 16 16 }; 17 17 18 18 useFetchCargoVendor = true; 19 19 cargoHash = "sha256-Aw794yhIET8/pnlQiK2xKVbYC/Kd5MExvFTwkv4LLTc="; 20 20 21 - meta = with lib; { 21 + meta = { 22 22 description = "Generate documentation for Nix functions"; 23 23 mainProgram = "nixdoc"; 24 24 homepage = "https://github.com/nix-community/nixdoc"; 25 - license = [ licenses.gpl3 ]; 26 - maintainers = with maintainers; [ 25 + license = [ lib.licenses.gpl3 ]; 26 + maintainers = with lib.maintainers; [ 27 27 infinisil 28 28 hsjobeki 29 29 ]; 30 - platforms = platforms.unix; 30 + platforms = lib.platforms.unix; 31 31 }; 32 - } 32 + })