mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-05-04 10:37:02 +00:00
webfs: fix mime types
Unfortunately the shared_mime_info format is not compatible with webfs. Instead of pulling the whole httpd package I opted for just fetching the mime.types file from the apache httpd project.
This commit is contained in:
parent
054402d479
commit
138a42dd11
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
||||||
{ stdenv, fetchurl, openssl, shared_mime_info }:
|
{ stdenv, fetchurl, openssl }:
|
||||||
|
let
|
||||||
|
# Let's not pull the whole apache httpd package
|
||||||
|
mime_file = fetchurl {
|
||||||
|
url = https://raw.githubusercontent.com/apache/httpd/906e419c1f703360e2e8ec077b393347f993884f/docs/conf/mime.types;
|
||||||
|
sha256 = "ef972fc545cbff4c0daa2b2e6b440859693b3c10435ee90f10fa6fffad800c16";
|
||||||
|
};
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "webfs-${version}";
|
name = "webfs-${version}";
|
||||||
version = "1.21";
|
version = "1.21";
|
||||||
|
@ -13,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"mimefile=${shared_mime_info}/share/mime/globs"
|
"mimefile=${mime_file}"
|
||||||
"prefix=$(out)"
|
"prefix=$(out)"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue