2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub }:
|
2020-05-01 15:50:04 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "intermodal";
|
2020-10-18 15:29:57 +01:00
|
|
|
version = "0.1.12";
|
2020-05-01 15:50:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "casey";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-18 15:29:57 +01:00
|
|
|
sha256 = "0mn0wm3bihn7ffqk0p79mb1hik54dbhc9diq1wh9ylpld2iqmz68";
|
2020-05-01 15:50:04 +01:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "1bvs23rb25qdwbrygzq11p8cvck5lxjp9llvs1cjdh0qzr65jwla";
|
2020-05-01 15:50:04 +01:00
|
|
|
|
|
|
|
# include_hidden test tries to use `chflags` on darwin
|
2021-01-15 09:19:50 +00:00
|
|
|
checkFlagsArray = lib.optionals stdenv.isDarwin [ "--skip=subcommand::torrent::create::tests::include_hidden" ];
|
2020-05-01 15:50:04 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-01 15:50:04 +01:00
|
|
|
description = "User-friendly and featureful command-line BitTorrent metainfo utility";
|
|
|
|
homepage = "https://github.com/casey/intermodal";
|
|
|
|
license = licenses.cc0;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-05-01 15:50:04 +01:00
|
|
|
};
|
|
|
|
}
|