python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / intermodal / default.nix
blobc61398a78dc427cabedeaaaf165bbc9b8dfb4c45
1 { lib, stdenv, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "intermodal";
5   version = "0.1.12";
7   src = fetchFromGitHub {
8     owner = "casey";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "0mn0wm3bihn7ffqk0p79mb1hik54dbhc9diq1wh9ylpld2iqmz68";
12   };
14   cargoSha256 = "1bvs23rb25qdwbrygzq11p8cvck5lxjp9llvs1cjdh0qzr65jwla";
16   # include_hidden test tries to use `chflags` on darwin
17   checkFlagsArray = lib.optionals stdenv.isDarwin [ "--skip=subcommand::torrent::create::tests::include_hidden" ];
19   meta = with lib; {
20     description = "User-friendly and featureful command-line BitTorrent metainfo utility";
21     homepage = "https://github.com/casey/intermodal";
22     license = licenses.cc0;
23     maintainers = with maintainers; [ Br1ght0ne ];
24     mainProgram = "imdl";
25   };