nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 918 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7}: 8let 9 version = "1.2.0"; 10in 11rustPlatform.buildRustPackage { 12 pname = "markuplinkchecker"; 13 inherit version; 14 15 src = fetchFromGitHub { 16 owner = "becheran"; 17 repo = "mlc"; 18 rev = "v${version}"; 19 hash = "sha256-6v4tRCtoABbb0bwOagEGHk2QoUs3u/AnME5g7vhbkI4="; 20 }; 21 22 cargoHash = "sha256-W4aOrKnRDAvHC4c+7e/XYSOgB/wFExqQhimaPJNiJk8="; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 buildInputs = [ openssl ]; 27 28 env = { 29 OPENSSL_NO_VENDOR = true; 30 }; 31 32 doCheck = false; # tests require an internet connection 33 34 meta = { 35 description = "Check for broken links in markup files"; 36 homepage = "https://github.com/becheran/mlc"; 37 changelog = "https://github.com/becheran/mlc/blob/v${version}/CHANGELOG.md"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ 40 anas 41 ]; 42 mainProgram = "mlc"; 43 }; 44}