mdbook: remove rec and with

`rec` and `with` are not recommended as they can produce hard to debug
errors.
This commit is contained in:
Jalil David Salamé Messina 2024-07-04 00:31:21 +02:00
parent 9fb66c6989
commit 686c27bf09
No known key found for this signature in database
GPG Key ID: F016B9E770737A0B

View File

@ -1,8 +1,8 @@
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "mdbook";
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices, installShellFiles }: let
version = "0.4.37";
in rustPlatform.buildRustPackage {
inherit version;
pname = "mdbook";
src = fetchFromGitHub {
owner = "rust-lang";
@ -30,12 +30,12 @@ rustPlatform.buildRustPackage rec {
};
};
meta = with lib; {
meta = {
description = "Create books from MarkDown";
mainProgram = "mdbook";
homepage = "https://github.com/rust-lang/mdBook";
changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md";
license = [ licenses.mpl20 ];
maintainers = with maintainers; [ havvy Frostman matthiasbeyer ];
license = [ lib.licenses.mpl20 ];
maintainers = with lib.maintainers; [ havvy Frostman matthiasbeyer ];
};
}