Skip to content

Commit

Permalink
mime-types: init at 9
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Nov 19, 2017
1 parent 5147d8b commit 1b594f0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pkgs/data/misc/mime-types/default.nix
@@ -0,0 +1,27 @@
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
name = "mime-types-${version}";
version = "9";

src = fetchurl {
url = "https://mirrors.kernel.org/gentoo/distfiles/${name}.tar.bz2";
sha256 = "0pib8v0f5xwwm3xj2ygdi2dlxxvbq6p95l3fah5f66qj9xrqlqxl";
};

dontBuild = true;

installPhase = ''
runHook preInstall
install -Dm644 -t $out/etc mime.types
runHook postInstall
'';

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -13539,6 +13539,8 @@ with pkgs;

shaderc = callPackage ../development/compilers/shaderc { };

mime_types = callPackage ../data/misc/mime-types { };

shared_mime_info = callPackage ../data/misc/shared-mime-info { };

shared_desktop_ontologies = callPackage ../data/misc/shared-desktop-ontologies { };
Expand Down

2 comments on commit 1b594f0

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When upstream uses dashed name, so can/should nixpkgs. Please change "mime_types" to "mime-types".

@peterhoeg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.