nixdoc: modernize (#406152)
This commit is contained in:
commit
dbaabd27e1
@ -4,29 +4,29 @@
|
|||||||
rustPlatform,
|
rustPlatform,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "nixdoc";
|
pname = "nixdoc";
|
||||||
version = "3.1.0";
|
version = "3.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
repo = "nixdoc";
|
repo = "nixdoc";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-7UOjmW8Ef4mEvj7SINaKWh2ZuyNMVEXB82mtuZTQiPA=";
|
hash = "sha256-7UOjmW8Ef4mEvj7SINaKWh2ZuyNMVEXB82mtuZTQiPA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-Aw794yhIET8/pnlQiK2xKVbYC/Kd5MExvFTwkv4LLTc=";
|
cargoHash = "sha256-Aw794yhIET8/pnlQiK2xKVbYC/Kd5MExvFTwkv4LLTc=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Generate documentation for Nix functions";
|
description = "Generate documentation for Nix functions";
|
||||||
mainProgram = "nixdoc";
|
mainProgram = "nixdoc";
|
||||||
homepage = "https://github.com/nix-community/nixdoc";
|
homepage = "https://github.com/nix-community/nixdoc";
|
||||||
license = [ licenses.gpl3 ];
|
license = [ lib.licenses.gpl3 ];
|
||||||
maintainers = with maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
infinisil
|
infinisil
|
||||||
hsjobeki
|
hsjobeki
|
||||||
];
|
];
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user