mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
go: do not replace path to mime.types
This commit is contained in:
parent
5a0be78562
commit
051bc353d0
@ -57,8 +57,8 @@ stdenv.mkDerivation rec {
|
|||||||
--replace '#!/usr/bin/env bash' '#!${runtimeShell}'
|
--replace '#!/usr/bin/env bash' '#!${runtimeShell}'
|
||||||
|
|
||||||
# Patch the mimetype database location which is missing on NixOS.
|
# Patch the mimetype database location which is missing on NixOS.
|
||||||
substituteInPlace src/mime/type_unix.go \
|
# but also allow static binaries built with NixOS to run outside nix
|
||||||
--replace '/etc/mime.types' '${mailcap}/etc/mime.types'
|
sed -i 's,\"/etc/mime.types,"${mailcap}/etc/mime.types\"\,\n\t&,' src/mime/type_unix.go
|
||||||
|
|
||||||
# Disabling the 'os/http/net' tests (they want files not available in
|
# Disabling the 'os/http/net' tests (they want files not available in
|
||||||
# chroot builds)
|
# chroot builds)
|
||||||
|
Loading…
Reference in New Issue
Block a user