Skip to content

Commit d7d8df6

Browse files
nixdoc: modernize
1 parent 08ed87c commit d7d8df6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkgs/by-name/ni/nixdoc/package.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
rustPlatform,
55
}:
66

7-
rustPlatform.buildRustPackage rec {
7+
rustPlatform.buildRustPackage (finalAttrs: {
88
pname = "nixdoc";
99
version = "3.1.0";
1010

1111
src = fetchFromGitHub {
1212
owner = "nix-community";
1313
repo = "nixdoc";
14-
rev = "v${version}";
15-
sha256 = "sha256-7UOjmW8Ef4mEvj7SINaKWh2ZuyNMVEXB82mtuZTQiPA=";
14+
tag = "v${finalAttrs.version}";
15+
hash = "sha256-7UOjmW8Ef4mEvj7SINaKWh2ZuyNMVEXB82mtuZTQiPA=";
1616
};
1717

1818
useFetchCargoVendor = true;
1919
cargoHash = "sha256-Aw794yhIET8/pnlQiK2xKVbYC/Kd5MExvFTwkv4LLTc=";
2020

21-
meta = with lib; {
21+
meta = {
2222
description = "Generate documentation for Nix functions";
2323
mainProgram = "nixdoc";
2424
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; [
2727
infinisil
2828
hsjobeki
2929
];
30-
platforms = platforms.unix;
30+
platforms = lib.platforms.unix;
3131
};
32-
}
32+
})

0 commit comments

Comments
 (0)