mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
mdcat: 0.26.0 -> 0.26.1
also fix license, switch upstream
This commit is contained in:
parent
b5efa36c5e
commit
e2856ed17f
1 changed files with 9 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchFromGitea
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, asciidoctor
|
||||
|
@ -12,20 +12,21 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdcat";
|
||||
version = "0.26.0";
|
||||
version = "0.26.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lunaryorn";
|
||||
repo = pname;
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "flausch";
|
||||
repo = "mdcat";
|
||||
rev = "mdcat-${version}";
|
||||
sha256 = "sha256-boZ3n/EWwpnUNtnDxMy/nT9IKIFg1OwLOkxV7URNdd0=";
|
||||
sha256 = "sha256-vB49EwQltonR9Uw8RRMZTPR4WkcylnIqiE0/8+t2R1Q=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config asciidoctor installShellFiles ];
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
cargoSha256 = "sha256-8D+YvMr32K0/hx1FUFOCjF8eSOaaf6sbTRx5ikFKPEE=";
|
||||
cargoSha256 = "sha256-v52ob5l5HiiZZmo88D9/ldFi0170/BuPzgKIt9ctSgU=";
|
||||
|
||||
checkInputs = [ ansi2html ];
|
||||
# Skip tests that use the network and that include files.
|
||||
|
@ -50,7 +51,7 @@ rustPlatform.buildRustPackage rec {
|
|||
meta = with lib; {
|
||||
description = "cat for markdown";
|
||||
homepage = "https://github.com/lunaryorn/mdcat";
|
||||
license = with licenses; [ asl20 ];
|
||||
license = with licenses; [ mpl20 ];
|
||||
maintainers = with maintainers; [ davidtwco SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue