mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
stdenv,
|
|
darwin,
|
|
}:
|
|
let
|
|
version = "0.19.0";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "markuplinkchecker";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "becheran";
|
|
repo = "mlc";
|
|
rev = "v${version}";
|
|
hash = "sha256-Nh+P5+dvl2gBQuvo0iKjsJgz/2OYQqAWSIJBzE7yO6I=";
|
|
};
|
|
|
|
cargoHash = "sha256-1WB8J3AMK4DVHrrrdwV7nFmNJfiIndC2k2VQXzKxEy8=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin (
|
|
with darwin.apple_sdk.frameworks;
|
|
[
|
|
Security
|
|
SystemConfiguration
|
|
]
|
|
);
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = true;
|
|
};
|
|
|
|
doCheck = false; # tests require an internet connection
|
|
|
|
meta = {
|
|
description = "Check for broken links in markup files";
|
|
homepage = "https://github.com/becheran/mlc";
|
|
changelog = "https://github.com/becheran/mlc/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
uncenter
|
|
anas
|
|
];
|
|
mainProgram = "mlc";
|
|
};
|
|
}
|