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