python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / nix / rnix-hashes / default.nix
blob4aebb35bc9356a38f19708b3c58e52365f33e958
1 { lib, rustPlatform, fetchFromGitHub, fetchpatch }:
3 rustPlatform.buildRustPackage rec {
4   pname = "rnix-hashes";
5   version = "0.2.0";
7   src = fetchFromGitHub {
8     owner = "numtide";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "SzHyG5cEjaaPjTkn8puht6snjHMl8DtorOGDjxakJfA=";
12   };
14   patches = [
15     # fix test failure
16     (fetchpatch {
17       url = "https://github.com/numtide/rnix-hashes/commit/62ab96cfd1efeade7d98efd9829eae8677bac9cc.patch";
18       sha256 = "sha256-oE2fBt20FmO2cEUGivu2mKo3z6rbhVLXSF8SRvhibFs=";
19     })
20   ];
22   cargoSha256 = "sha256-p6W9NtOKzVViyFq5SQvnIsik7S3mqUqxI/05OiC+P+Q=";
24   meta = with lib; {
25     description = "Nix Hash Converter";
26     homepage = "https://github.com/numtide/rnix-hashes";
27     license = licenses.asl20;
28     maintainers = with maintainers; [ rizary SuperSandro2000 ];
29   };