nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 761 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitLab, 5 versionCheckHook, 6}: 7rustPlatform.buildRustPackage rec { 8 pname = "mdbook-variables"; 9 version = "0.4.1"; 10 11 src = fetchFromGitLab { 12 owner = "tglman"; 13 repo = "mdbook-variables"; 14 rev = version; 15 hash = "sha256-DMfVviMVizxtkunu3DygL1t0vTW6a+frfFfVl8h7Urw="; 16 }; 17 18 cargoHash = "sha256-q8UbL1zBb1InYutgM3ZE7z9NdJKi68yjR2Za/o0jg9c="; 19 20 nativeInstallCheckInputs = [ 21 versionCheckHook 22 ]; 23 doInstallCheck = true; 24 25 meta = { 26 description = "mdBook preprocessor to replace values with env variables"; 27 mainProgram = "mdbook-variables"; 28 homepage = "https://gitlab.com/tglman/mdbook-variables"; 29 license = lib.licenses.mpl20; 30 maintainers = with lib.maintainers; [ kraftnix ]; 31 }; 32}