diff options
author | c0bw3b <c0bw3b@users.noreply.github.com> | 2018-11-24 17:52:43 +0100 |
---|---|---|
committer | c0bw3b <c0bw3b@users.noreply.github.com> | 2018-11-24 17:52:43 +0100 |
commit | 9b85eb42bb312ee7f179c9456311a00a88b4229b (patch) | |
tree | a20a3082282086da82fcc82b55d9267179a0de56 /pkgs/data/misc/mailcap/default.nix | |
parent | 56cad36f7541dfb906b1ecc8858c73da4fbd1010 (diff) | |
download | nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.tar nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.tar.gz nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.tar.bz2 nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.tar.lz nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.tar.xz nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.tar.zst nixpkgs-9b85eb42bb312ee7f179c9456311a00a88b4229b.zip |
mailcap: init at 2.1.48
Helper application and MIME type associations for file types Provides a fresher /etc/mime.types
Diffstat (limited to 'pkgs/data/misc/mailcap/default.nix')
-rw-r--r-- | pkgs/data/misc/mailcap/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/misc/mailcap/default.nix b/pkgs/data/misc/mailcap/default.nix new file mode 100644 index 00000000000..d27e1d2dfd2 --- /dev/null +++ b/pkgs/data/misc/mailcap/default.nix @@ -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; + }; +} |