Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / mimetic / default.nix
blob668b2fdf10c937abd91ab1a2c74294b8ed500630
1 { lib, stdenv, fetchurl, fetchpatch, cutee }:
3 stdenv.mkDerivation rec {
4   pname = "mimetic";
5   version = "0.9.8";
7   src = fetchurl {
8     url    = "http://www.codesink.org/download/${pname}-${version}.tar.gz";
9     sha256 = "003715lvj4nx23arn1s9ss6hgc2yblkwfy5h94li6pjz2a6xc1rs";
10   };
12   buildInputs = [ cutee ];
14   patches = [
15     # Fix build with gcc11
16     (fetchpatch {
17       url = "https://github.com/tat/mimetic/commit/bf84940f9021950c80846e6b1a5f8b0b55991b00.patch";
18       sha256 = "sha256-1JW9zPg67BgNsdIjK/jp9j7QMg50eRMz5FsDsbbzBlI=";
19     })
20   ] ++ lib.optional stdenv.isAarch64 ./narrowing.patch;
22   meta = with lib; {
23     description = "MIME handling library";
24     homepage    = "https://www.codesink.org/mimetic_mime_library.html";
25     license     = licenses.mit;
26     maintainers = with maintainers; [ leenaars];
27     platforms = platforms.linux;
28   };