python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / monocypher / default.nix
blob7ce84cbba835998dbc555b9fa72def34660bef76
1 { lib, stdenv, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
4   pname = "monocypher";
5   version = "3.1.3";
7   src = fetchurl {
8     url = "https://monocypher.org/download/monocypher-${version}.tar.gz";
9     hash = "sha256-tEK1d98o+MNsqgHZrpARtd2ccX2UvlIBaKBONtf1AW4=";
10   };
12   patches = [
13     # Fix cross-compilation
14     (fetchpatch {
15       url = "https://github.com/LoupVaillant/Monocypher/commit/376715e1c0ebb375e50dfa757bc89486c9a7b404.patch";
16       hash = "sha256-tuwSUaU4w+jkaj10ChMgUmOQmoKYnv5JgJ1og8EXxFk=";
17     })
18   ];
20   makeFlags = [ "AR:=$(AR)" "CC:=$(CC)" ];
22   installFlags = [ "PREFIX=$(out)" ];
24   doCheck = true;
26   meta = with lib; {
27     description = "Boring crypto that simply works";
28     homepage = "https://monocypher.org";
29     license = with licenses; [ bsd2 cc0 ];
30     platforms = platforms.linux;
31     maintainers = with maintainers; [ sikmir ];
32   };