File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ { stdenv , fetchurl } :
2
+
3
+ stdenv . mkDerivation rec {
4
+ name = "mime-types-${ version } " ;
5
+ version = "9" ;
6
+
7
+ src = fetchurl {
8
+ url = "https://mirrors.kernel.org/gentoo/distfiles/${ name } .tar.bz2" ;
9
+ sha256 = "0pib8v0f5xwwm3xj2ygdi2dlxxvbq6p95l3fah5f66qj9xrqlqxl" ;
10
+ } ;
11
+
12
+ dontBuild = true ;
13
+
14
+ installPhase = ''
15
+ runHook preInstall
16
+ install -Dm644 -t $out/etc mime.types
17
+ runHook postInstall
18
+ '' ;
19
+
20
+ meta = with stdenv . lib ; {
21
+ description = "A database of common mappings of file extensions to MIME types" ;
22
+ homepage = https://packages.gentoo.org/packages/app-misc/mime-types ;
23
+ license = licenses . gpl2 ;
24
+ maintainers = with maintainers ; [ peterhoeg ] ;
25
+ platforms = platforms . all ;
26
+ } ;
27
+ }
Original file line number Diff line number Diff line change @@ -13539,6 +13539,8 @@ with pkgs;
13539
13539
13540
13540
shaderc = callPackage ../development/compilers/shaderc { };
13541
13541
13542
+ mime_types = callPackage ../data/misc/mime-types { };
13543
+
13542
13544
shared_mime_info = callPackage ../data/misc/shared-mime-info { };
13543
13545
13544
13546
shared_desktop_ontologies = callPackage ../data/misc/shared-desktop-ontologies { };
You can’t perform that action at this time.
2 commit comments
bjornfor commentedon Nov 19, 2017
When upstream uses dashed name, so can/should nixpkgs. Please change "mime_types" to "mime-types".
peterhoeg commentedon Nov 19, 2017
👍