summary refs log tree commit diff
path: root/pkgs/data/misc/mime-types/default.nix
blob: b18b66a227e64e3ac9b6221d093b95ded2738c86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchzip }:

let
  version = "9";
in fetchzip rec {
  name = "mime-types-${version}";
  url = "https://mirrors.kernel.org/gentoo/distfiles/${name}.tar.bz2";
  postFetch = ''
    mkdir -p $out/etc
    tar xjvf $downloadedFile --directory=$out/etc --strip-components=1
  '';
  sha256 = "0gyla4wfiaccs0qh0hw7n08kdpnkkssglcg0z2jblb2lsdr4qna0";

  meta = with stdenv.lib; {
    description = "A database of common mappings of file extensions to MIME types";
    homepage = "https://packages.gentoo.org/packages/app-misc/mime-types";
    license = licenses.gpl2;
    maintainers = with maintainers; [ peterhoeg ];
    platforms = platforms.all;
  };
}