nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 971 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6 versionCheckHook, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "mdq"; 11 version = "0.7.2"; 12 13 src = fetchFromGitHub { 14 owner = "yshavit"; 15 repo = "mdq"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-QGva+yuiNwez8z9j4SL8vpcHdUm8nxRFn+6WiZgdWjQ="; 18 }; 19 20 cargoHash = "sha256-k+St07jA+F+c4md9OzFiDp9idie6zoNI65HEQ2JqynM="; 21 22 passthru.updateScript = nix-update-script { }; 23 24 doInstallCheck = true; 25 nativeInstallCheckInputs = [ versionCheckHook ]; 26 versionCheckProgramArg = "--version"; 27 28 meta = { 29 description = "Like jq but for Markdown: find specific elements in a md doc"; 30 homepage = "https://github.com/yshavit/mdq"; 31 changelog = "https://github.com/yshavit/mdq/releases/tag/v${finalAttrs.version}"; 32 license = with lib.licenses; [ 33 mit 34 asl20 35 ]; 36 maintainers = with lib.maintainers; [ DimitarNestorov ]; 37 mainProgram = "mdq"; 38 }; 39})