xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / by-name / rn / rnix-hashes / package.nix
blobd69c7e6ef96f2b8ef1c1542541dee6eefeb7ca3b
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   cargoHash = "sha256-p6W9NtOKzVViyFq5SQvnIsik7S3mqUqxI/05OiC+P+Q=";
24   meta = with lib; {
25     description = "Nix Hash Converter";
26     mainProgram = "rnix-hashes";
27     homepage = "https://github.com/numtide/rnix-hashes";
28     license = licenses.asl20;
29     maintainers = with maintainers; [ rizary SuperSandro2000 ];
30   };