mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
Merge pull request #118631 from SuperSandro2000/mailcap
mailcap: 2.1.48 -> 2.1.52
This commit is contained in:
commit
fc04b284f7
@ -1,23 +1,23 @@
|
||||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "2.1.48";
|
||||
version = "2.1.52";
|
||||
|
||||
in fetchzip {
|
||||
name = "mailcap-${version}";
|
||||
|
||||
url = "https://releases.pagure.org/mailcap/mailcap-${version}.tar.xz";
|
||||
sha256 = "08d0avz8971hkggd60dk9yyd14izz24yag3prpfafbvm670jlmqg";
|
||||
sha256 = "sha256-2GRNg3zoMPMaOk2zoAx5sVIzjbQhnYJuaO8nrzWujVc=";
|
||||
|
||||
postFetch = ''
|
||||
tar -xavf $downloadedFile --strip-components=1
|
||||
substituteInPlace mailcap --replace "/usr/bin/" ""
|
||||
gzip mailcap.4
|
||||
gzip mailcap.5
|
||||
sh generate-nginx-mimetypes.sh < mime.types > nginx-mime.types
|
||||
|
||||
install -D -m0644 nginx-mime.types $out/etc/nginx/mime.types
|
||||
install -D -m0644 -t $out/etc mailcap mime.types
|
||||
install -D -m0644 -t $out/share/man/man4 mailcap.4.gz
|
||||
install -D -m0644 -t $out/share/man/man5 mailcap.5.gz
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user