Merge pull request #50987 from c0bw3b/pkg/mailcap

mailcap: init at 2.1.48
This commit is contained in:
Renaud 2018-11-25 16:14:34 +01:00 committed by GitHub
commit 5e115d2d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ lib, fetchzip }:
let
version = "2.1.48";
in fetchzip {
name = "mailcap-${version}";
url = "https://releases.pagure.org/mailcap/mailcap-${version}.tar.xz";
sha256 = "0m1rls4z85aby9fggwx2x70b4y6l0jjyiqdv30p8g91nv8hrq9fw";
postFetch = ''
tar -xavf $downloadedFile --strip-components=1
substituteInPlace mailcap --replace "/usr/bin/" ""
gzip mailcap.4
install -D -m0644 -t $out/etc mailcap mime.types
install -D -m0644 -t $out/share/man/man4 mailcap.4.gz
'';
meta = with lib; {
description = "Helper application and MIME type associations for file types";
homepage = "https://pagure.io/mailcap";
license = licenses.mit;
maintainers = with maintainers; [ c0bw3b ];
platforms = platforms.all;
};
}

View File

@ -15397,6 +15397,8 @@ with pkgs;
maia-icon-theme = callPackage ../data/icons/maia-icon-theme { };
mailcap = callPackage ../data/misc/mailcap { };
marathi-cursive = callPackage ../data/fonts/marathi-cursive { };
man-pages = callPackage ../data/documentation/man-pages { };