nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 1.1 kB view raw
1{ 2 lib, 3 mdbook, 4 nodejs, 5 python3, 6 util-linux, 7 rustPlatform, 8 fetchFromGitHub, 9}: 10 11rustPlatform.buildRustPackage { 12 pname = "mdbook-cmdrun"; 13 version = "0.7.3-unstable-2025-12-22"; 14 15 # mdbook 0.5 upgrade: https://github.com/FauconFan/mdbook-cmdrun/pull/23 16 src = fetchFromGitHub { 17 owner = "roberth"; 18 repo = "mdbook-cmdrun"; 19 rev = "3947c797d063352e0f983311c078430215cc1cca"; 20 hash = "sha256-0RkyMJ8tsnGcSD0ksGTGAyliH6AihVl0HEesljEmTH8="; 21 }; 22 23 nativeCheckInputs = [ 24 mdbook # used by tests/book.rs 25 nodejs # used by tests/regression/inline_call/input.md 26 python3 # used by tests/regression/py_* 27 util-linux # used by tests/regression/shell/input.md 28 ]; 29 30 cargoHash = "sha256-oUlH+z50a1FtzDADXfGKSYjauZGTok0bVMq718HLglY="; 31 32 meta = { 33 description = "mdbook preprocessor to run arbitrary commands"; 34 mainProgram = "mdbook-cmdrun"; 35 homepage = "https://github.com/FauconFan/mdbook-cmdrun"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ 38 pinpox 39 matthiasbeyer 40 ]; 41 }; 42}