1 { lib, stdenv, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
8 url = "https://monocypher.org/download/monocypher-${version}.tar.gz";
9 hash = "sha256-tEK1d98o+MNsqgHZrpARtd2ccX2UvlIBaKBONtf1AW4=";
13 # Fix cross-compilation
15 url = "https://github.com/LoupVaillant/Monocypher/commit/376715e1c0ebb375e50dfa757bc89486c9a7b404.patch";
16 hash = "sha256-tuwSUaU4w+jkaj10ChMgUmOQmoKYnv5JgJ1og8EXxFk=";
20 makeFlags = [ "AR:=$(AR)" "CC:=$(CC)" ];
22 installFlags = [ "PREFIX=$(out)" ];
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 ];