mdcat: 2.1.2 -> 2.3.0
This commit is contained in:
parent
54770984fc
commit
6fe75e3b62
@ -13,20 +13,20 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mdcat";
|
pname = "mdcat";
|
||||||
version = "2.1.2";
|
version = "2.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "swsnr";
|
owner = "swsnr";
|
||||||
repo = "mdcat";
|
repo = "mdcat";
|
||||||
rev = "mdcat-${version}";
|
rev = "mdcat-${version}";
|
||||||
hash = "sha256-qdNORp9THxHWR95uVcYtCy59OQqdop1012thZN5i64w=";
|
hash = "sha256-OgqWlWORLbohok9gJWiVUf0EdFP7Duk0Iw1PiSl4350=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config asciidoctor installShellFiles ];
|
nativeBuildInputs = [ pkg-config asciidoctor installShellFiles ];
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
||||||
|
|
||||||
cargoHash = "sha256-/avxRvT35LxCBWkTYJDCtdd95VC67epZIPCMv994uBo=";
|
cargoHash = "sha256-jLKqJQ+T2KaS1bZ6MSQ6l/1iXvfLoyeI68WvO5smuwU=";
|
||||||
|
|
||||||
nativeCheckInputs = [ ansi2html ];
|
nativeCheckInputs = [ ansi2html ];
|
||||||
# Skip tests that use the network and that include files.
|
# Skip tests that use the network and that include files.
|
||||||
@ -44,12 +44,12 @@ rustPlatform.buildRustPackage rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage $releaseDir/build/mdcat-*/out/mdcat.1
|
installManPage $releaseDir/build/mdcat-*/out/mdcat.1
|
||||||
ln -sr $out/bin/{mdcat,mdless}
|
ln -sr $out/bin/{mdcat,mdless}
|
||||||
|
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
for bin in mdcat mdless; do
|
for bin in mdcat mdless; do
|
||||||
installShellCompletion \
|
installShellCompletion --cmd $bin \
|
||||||
--bash $releaseDir/build/mdcat-*/out/completions/$bin.bash \
|
--bash <($out/bin/$bin --completions bash) \
|
||||||
--fish $releaseDir/build/mdcat-*/out/completions/$bin.fish \
|
--fish <($out/bin/$bin --completions fish) \
|
||||||
--zsh $releaseDir/build/mdcat-*/out/completions/_$bin
|
--zsh <($out/bin/$bin --completions zsh)
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user