Skip to content

Instantly share code, notes, and snippets.

{ stdenv
, fetchFromGitHub
, gobject-introspection
, wrapGAppsHook
, gtk3
, webkitgtk
, python3
}:
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index bfb15f2f783..fff57dd7c48 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -453,7 +453,7 @@ stdenv.mkDerivation {
substituteAll ${./add-flags.sh} $out/nix-support/add-flags.sh
substituteAll ${./add-hardening.sh} $out/nix-support/add-hardening.sh
- substituteAll ${../wrapper-common/utils.bash} $out/nix-support/utils.bash
+ substituteAll ${if stdenv.isDarwin then ../wrapper-common/utils.bash.darwin else ../wrapper-common/utils.bash} $out/nix-support/utils.bash
{ stdenv
, lib
, fetchFromGitHub
, fetchurl
, pkg-config
, gtk2
, popt
, xlibs
}:
let
these derivations will be built:
/nix/store/1m61nnhbb6whbpr99i1h37j5szmxzm7c-libmediaart-1.9.4.drv
building '/nix/store/1m61nnhbb6whbpr99i1h37j5szmxzm7c-libmediaart-1.9.4.drv'...
unpacking sources
unpacking source archive /nix/store/jdn38nxsa4z2a213wpkingiq86iaggri-libmediaart-1.9.4.tar.xz
source root is libmediaart-1.9.4
setting SOURCE_DATE_EPOCH to timestamp 1502485012 of file libmediaart-1.9.4/docs/reference/libmediaart/libmediaart-sections.txt
patching sources
applying patch /nix/store/vdh9jjvlawy7p4lfvf65d0wjqjlk6nxa-meson.patch
patching file tests/meson.build
nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/lib/ghc-8.4.3/rts/libHSrts_thr.a(Capability.thr_o):Capability.c:function tryGrabCapability: error: undefined reference to 'pthread_mutex_trylock'
/nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/lib/ghc-8.4.3/rts/libHSrts_thr.a(Schedule.thr_o):Schedule.c:function schedule: error: undefined reference to 'pthread_mutex_trylock'
/nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/lib/ghc-8.4.3/rts/libHSrts_thr.a(Itimer.thr_o):Itimer.c:function initTicker: error: undefined reference to 'pthread_create'
/nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/lib/ghc-8.4.3/rts/libHSrts_thr.a(Itimer.thr_o):Itimer.c:function initTicker: error: undefined reference to 'pthread_setname_np'
/nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/lib/ghc-8.4.3/rts/libHSrts_thr.a(Itimer.thr_o):Itimer.c:function exitTicker: error: undefined reference to 'pthread_join'
/nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/lib/ghc-8.4.3/rts/libHSrts_thr.a(It
nixpkgs.config.packageOverrides = pkgs: rec {
haskellEnv =
pkgs.haskellPackages.ghcWithPackages (ghcPkgs:
with ghcPkgs; with pkgs.haskell.lib; [
# pkgs.haskell.packages.ghc802.ghc-mod
(let src = pkgs.fetchFromGitHub {
owner = "DanielG";
repo = "ghc-mod";
rev = "9f44a7f3e082c860fab0190a13265ec65ee35987";
sha256 = "0qkwbk816w26wadwv2r16xjdfvr6bz5xyi3sn7hbvczdhg3c0xad";
configure:2611: checking for setupterm in -ltinfo
configure:2636: /nix/store/mgsr2vdb3js9fhc871g3w791vpl5rhl9-x86_64-unknown-linux-musl-gcc-cross-wrapper-7.3.0-x86_64-unknown-linux-musl-stage-final/bin/x86_64-unknown-linux-musl-cc -o conftest -Wall -fno-stack -protector -Werror=unused-but-set-variable -Wno-error=inline -L/nix/store/s8c50k081m5xdc2lxz0dwimsnm74rlnb-ncurses-6.1/lib conftest.c -ltinfo >&5
/nix/store/8hfys9n9dxpa79brg0gm4idi1lvbwfmc-x86_64-unknown-linux-musl-binutils-2.28.1/bin/x86_64-unknown-linux-musl-ld: warning: ld-linux-x86-64.so.2, needed by /nix/store/84h2zni7h805k0i1ys2bba3dsp1cqnhh-glib c-2.26-131/lib/libc.so.6, not found (try using -rpath or -rpath-link)
/nix/store/84h2zni7h805k0i1ys2bba3dsp1cqnhh-glibc-2.26-131/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE'
/nix/store/84h2zni7h805k0i1ys2bba3dsp1cqnhh-glibc-2.26-131/lib/libc.so.6: undefined reference to `_dl_find_dso_for_object@GLIBC_PRIVATE'
/nix/store/84h2zni7h805k0i1ys2bba3dsp1cqnhh-glibc-2.26-131/li
31317 execve("./result/bin/steam", ["./result/bin/steam"], ["COLORFGBG=default;default", "COLORTERM=rxvt-xpm", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "DESKTOP_SESSION=custom+xmonad", "DISPLAY=:0", "EDITOR=nano", "GDMSESSION=custom+xmonad", "GDM_LANG=en_GB.utf8", "GIO_EXTRA_MODULES=/nix/store/d3f5yylf6isdpkcr4f0vscvnsdswpf8q-dconf-0.26.0-lib/lib/gio/modules:/nix/store/z6569bm1rw7j30cf5w3f3jpm0jk339yp-glib-networking-2.50.0/lib/gio/modules:/nix/store/d7fnh2cjhbqg24jgmkxsk5k1pp9ab842-gvfs-1.30.1/lib/gio/modules", "GTK_PATH=/etc/per-user-pkgs/pbogdan/lib/gtk-2.0:/etc/per-user-pkgs/pbogdan/lib/gtk-3.0:/home/pbogdan/.nix-profile/lib/gtk-2.0:/home/pbogdan/.nix-profile/lib/gtk-3.0:/nix/var/nix/profiles/default/lib/gtk-2.0:/nix/var/nix/profiles/default/lib/gtk-3.0:/run/current-system/sw/lib/gtk-2.0:/run/current-system/sw/lib/gtk-3.0", "HOME=/home/pbogdan", "INFOPATH=/etc/per-user-pkgs/pbogdan/info:/etc/per-user-pkgs/pbogdan/share/info:/home/pbogdan/.nix-profile/info:/home/pbogdan/.nix-profile/share/i
5590 execve("./result/bin/steam", ["./result/bin/steam"], ["COLORFGBG=default;default", "COLORTERM=rxvt-xpm", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "DESKTOP_SESSION=custom+xmonad", "DISPLAY=:0", "EDITOR=nano", "GDMSESSION=custom+xmonad", "GDM_LANG=en_GB.utf8", "GIO_EXTRA_MODULES=/nix/store/d3f5yylf6isdpkcr4f0vscvnsdswpf8q-dconf-0.26.0-lib/lib/gio/modules:/nix/store/z6569bm1rw7j30cf5w3f3jpm0jk339yp-glib-networking-2.50.0/lib/gio/modules:/nix/store/d7fnh2cjhbqg24jgmkxsk5k1pp9ab842-gvfs-1.30.1/lib/gio/modules", "GTK_PATH=/etc/per-user-pkgs/pbogdan/lib/gtk-2.0:/etc/per-user-pkgs/pbogdan/lib/gtk-3.0:/home/pbogdan/.nix-profile/lib/gtk-2.0:/home/pbogdan/.nix-profile/lib/gtk-3.0:/nix/var/nix/profiles/default/lib/gtk-2.0:/nix/var/nix/profiles/default/lib/gtk-3.0:/run/current-system/sw/lib/gtk-2.0:/run/current-system/sw/lib/gtk-3.0", "HOME=/home/pbogdan", "INFOPATH=/etc/per-user-pkgs/pbogdan/info:/etc/per-user-pkgs/pbogdan/share/info:/home/pbogdan/.nix-profile/info:/home/pbogdan/.nix-profile/share/i
1357 10 -rw-r--r-- 1 root root 9355 Jan 5 1970 ./1hkp2n6hz3ybf2rvkjkwrzgbjkrrakzl-update-users-groups.pl
1364 1 -rw-r--r-- 1 root root 279 Jan 5 1970 ./1iysq6vq2541fxmcw0417sk9h0grb73c-fontconfig-penultimate-0.3.5/etc/fonts/conf.d/10-antialias.conf
1365 1 -rw-r--r-- 1 root root 447 Jan 5 1970 ./1iysq6vq2541fxmcw0417sk9h0grb73c-fontconfig-penultimate-0.3.5/etc/fonts/conf.d/10-hinting.conf
1366 1 -rw-r--r-- 1 root root 278 Jan 5 1970 ./1iysq6vq2541fxmcw0417sk9h0grb73c-fontconfig-penultimate-0.3.5/etc/fonts/conf.d/10-no-embedded-bitmaps.conf
1367 1 -rw-r--r-- 1 root root 372 Jan 5 1970 ./1iysq6vq2541fxmcw0417sk9h0grb73c-fontconfig-penultimate-0.3.5/etc/fonts/conf.d/10-subpixel.conf
1368 1 -rw-r--r-- 1 root root 402 Jan 5 1970 ./1iysq6vq2541fxmcw0417sk9h0grb73c-fontconfig-penultimate-0.3.5/etc/fonts/conf.d/30-liberation-mono.conf
1369 1 -rw