Skip to content

Instantly share code, notes, and snippets.

@lopter
Created January 18, 2022 03:04
Show Gist options
  • Save lopter/0f763a370b67ecf32df90e4a21db7e56 to your computer and use it in GitHub Desktop.
Save lopter/0f763a370b67ecf32df90e4a21db7e56 to your computer and use it in GitHub Desktop.
Nix cross-compile trials
% nix-build --arg system '"raspberryPi"' ~/snippets/redshift.nix 
this derivation will be built:
  /nix/store/qv5qd82v3dp7zy19bbprf4b5mz3qf14h-redshift-armv6l-unknown-linux-gnueabihf-1.12.drv
building '/nix/store/qv5qd82v3dp7zy19bbprf4b5mz3qf14h-redshift-armv6l-unknown-linux-gnueabihf-1.12.drv'...
unpacking sources
unpacking source archive /nix/store/dpx45gfjiqayfgx0qzld94acaid3n1rc-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
Copying file ABOUT-NLS
Copying file config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: running: intltoolize --automake --copy --force
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize:   error: One of these is required:
libtoolize:                 gm4 gnum4 m4
libtoolize:   error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'.
autoreconf: error: libtoolize failed with exit status: 1
error: builder for '/nix/store/qv5qd82v3dp7zy19bbprf4b5mz3qf14h-redshift-armv6l-unknown-linux-gnueabihf-1.12.drv' failed with exit code 1;
       last 10 log lines:
       > autoreconf: export WARNINGS=
       > autoreconf: Entering directory '.'
       > autoreconf: running: intltoolize --automake --copy --force
       > autoreconf: running: aclocal --force -I m4
       > autoreconf: configure.ac: tracing
       > autoreconf: running: libtoolize --copy --force
       > libtoolize:   error: One of these is required:
       > libtoolize:                 gm4 gnum4 m4
       > libtoolize:   error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'.
       > autoreconf: error: libtoolize failed with exit status: 1
       For full logs, run 'nix log /nix/store/qv5qd82v3dp7zy19bbprf4b5mz3qf14h-redshift-armv6l-unknown-linux-gnueabihf-1.12.drv'.
wks-sfo-wintermute:0:/tmp/kal/build% nix-shell --arg system '"raspberryPi"' ~/snippets/redshift.nix     
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

[nix-shell:/tmp/kal/build]$ eval unpackPhase
unpacking source archive /nix/store/dpx45gfjiqayfgx0qzld94acaid3n1rc-source
source root is source

[nix-shell:/tmp/kal/build]$                                                                                           [nix-shell:/tmp/kal/build]$ ls source
CONTRIBUTING.md  Makefile.am  README            appveyor.yml  contrib  redshift.1
COPYING          NEWS         README-colorramp  bootstrap     data     redshift.conf.sample
DESIGN           NEWS.md      README.md         configure.ac  po       src

[nix-shell:/tmp/kal/build]$                                                                                           [nix-shell:/tmp/kal/build]$ cd source

[nix-shell:/tmp/kal/build/source]$                                                                                    [nix-shell:/tmp/kal/build/source]$ eval configurePhase
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Copying file ABOUT-NLS
Copying file config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: running: intltoolize --automake --copy --force
autoreconf: running: aclocal --force -I m4
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: intltoolize --copy --force
You should update your 'aclocal.m4' by running aclocal.
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
autoreconf: running: /nix/store/6assgcnh1dgqmkiccjc1n2d4lsc6q50g-autoconf-armv6l-unknown-linux-gnueabihf-2.71/bin/autoconf --force
configure.ac:14: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:14: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:14: the top level
configure.ac:15: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:15: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:19: warning: The macro `AC_PROG_INTLTOOL' is obsolete.
configure.ac:19: You should run autoupdate.
m4/intltool.m4:209: AC_PROG_INTLTOOL is expanded from...
configure.ac:19: the top level
configure.ac:56: warning: AM_PROG_MKDIR_P: this macro is deprecated, and will soon be removed.
configure.ac:56: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:56: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:1002: AM_PROG_MKDIR_P is expanded from...
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:56: the top level
configure.ac:56: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:56: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/intlmacosx.m4:18: gt_INTL_MACOSX is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:56: the top level
configure.ac:56: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:56: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:56: the top level
configure.ac:56: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:56: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:56: the top level
configure.ac:56: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:56: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:56: the top level
configure.ac:105: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:105: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:105: the top level
configure.ac:129: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:129: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:129: the top level
configure.ac:153: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:153: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:153: the top level
configure.ac:177: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:177: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:177: the top level
configure.ac:205: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:205: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:205: the top level
configure.ac:230: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:230: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:230: the top level
configure.ac:254: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:254: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:254: the top level
configure.ac:283: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:283: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:283: the top level
configure.ac:305: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:305: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:305: the top level
configure.ac:336: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:336: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:336: the top level
autoreconf: running: /nix/store/6assgcnh1dgqmkiccjc1n2d4lsc6q50g-autoconf-armv6l-unknown-linux-gnueabihf-2.71/bin/autoheader --force
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
autoreconf: running: automake --add-missing --copy --force-missing
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
configure.ac:56: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:56: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:56: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
configure.ac:14: installing './compile'
configure.ac:15: installing './config.guess'
configure.ac:15: installing './config.sub'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
src/Makefile.am: installing './depcomp'
src/redshift-gtk/Makefile.am:3: installing './py-compile'
autoreconf: Leaving directory '.'
fixing libtool script ./ltmain.sh
configure flags: --disable-static --prefix=/nix/store/cp3khc9n4wq5i0l7z0zvv2rdsqxc34hq-redshift-armv6l-unknown-linux-gnueabihf-1.12 --enable-randr=no --enable-geoclue2=no --enable-drm=no --enable-quartz=no --enable-corelocation=no --enable-gui=no --enable-vidmode=no --enable-ubuntu=no --enable-apparmor=no --build=x86_64-unknown-linux-gnu --host=armv6l-unknown-linux-gnueabihf
checking for a BSD-compatible install... /nix/store/wrw3b1mp1dc5hvzbqi6dr37yslxvjxxk-coreutils-9.0/bin/install -c
checking whether build environment is sane... yes
checking for armv6l-unknown-linux-gnueabihf-strip... armv6l-unknown-linux-gnueabihf-strip
checking for a race-free mkdir -p... /nix/store/wrw3b1mp1dc5hvzbqi6dr37yslxvjxxk-coreutils-9.0/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for armv6l-unknown-linux-gnueabihf-gcc... armv6l-unknown-linux-gnueabihf-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether armv6l-unknown-linux-gnueabihf-gcc accepts -g... yes
checking for armv6l-unknown-linux-gnueabihf-gcc option to enable C11 features... none needed
checking whether armv6l-unknown-linux-gnueabihf-gcc understands -c and -o together... yes
checking dependency style of armv6l-unknown-linux-gnueabihf-gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... armv6l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /nix/store/3p96qwx1bgdjmam1whg3f728kkz8svl4-gnused-4.8/bin/sed
checking for grep that handles long lines and -e... /nix/store/s0c1m63ajbd63aw3qsd3823dwffr55h7-gnugrep-3.7/bin/grep
checking for egrep... /nix/store/s0c1m63ajbd63aw3qsd3823dwffr55h7-gnugrep-3.7/bin/grep -E
checking for fgrep... /nix/store/s0c1m63ajbd63aw3qsd3823dwffr55h7-gnugrep-3.7/bin/grep -F
checking for ld used by armv6l-unknown-linux-gnueabihf-gcc... armv6l-unknown-linux-gnueabihf-ld
checking if the linker (armv6l-unknown-linux-gnueabihf-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... armv6l-unknown-linux-gnueabihf-nm
checking the name lister (armv6l-unknown-linux-gnueabihf-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking how to convert x86_64-unknown-linux-gnu file names to armv6l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for armv6l-unknown-linux-gnueabihf-ld option to reload object files... -r
checking for armv6l-unknown-linux-gnueabihf-objdump... armv6l-unknown-linux-gnueabihf-objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for armv6l-unknown-linux-gnueabihf-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for armv6l-unknown-linux-gnueabihf-ar... armv6l-unknown-linux-gnueabihf-ar
checking for archiver @FILE support... @
checking for armv6l-unknown-linux-gnueabihf-strip... (cached) armv6l-unknown-linux-gnueabihf-strip
checking for armv6l-unknown-linux-gnueabihf-ranlib... armv6l-unknown-linux-gnueabihf-ranlib
checking command to parse armv6l-unknown-linux-gnueabihf-nm output from armv6l-unknown-linux-gnueabihf-gcc object... ok
checking for sysroot... no
checking for a working dd... /nix/store/wrw3b1mp1dc5hvzbqi6dr37yslxvjxxk-coreutils-9.0/bin/dd
checking how to truncate binary pipes... /nix/store/wrw3b1mp1dc5hvzbqi6dr37yslxvjxxk-coreutils-9.0/bin/dd bs=4096 count=1
checking for armv6l-unknown-linux-gnueabihf-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if armv6l-unknown-linux-gnueabihf-gcc supports -fno-rtti -fno-exceptions... no
checking for armv6l-unknown-linux-gnueabihf-gcc option to produce PIC... -fPIC -DPIC
checking if armv6l-unknown-linux-gnueabihf-gcc PIC flag -fPIC -DPIC works... yes
checking if armv6l-unknown-linux-gnueabihf-gcc static flag -static works... no
checking if armv6l-unknown-linux-gnueabihf-gcc supports -c -o file.o... yes
checking if armv6l-unknown-linux-gnueabihf-gcc supports -c -o file.o... (cached) yes
checking whether the armv6l-unknown-linux-gnueabihf-gcc linker (armv6l-unknown-linux-gnueabihf-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for armv6l-unknown-linux-gnueabihf-gcc... armv6l-unknown-linux-gnueabihf-gcc
checking whether the compiler supports GNU Objective C... no
checking whether armv6l-unknown-linux-gnueabihf-gcc accepts -g... no
checking dependency style of armv6l-unknown-linux-gnueabihf-gcc... gcc3
checking whether NLS is requested... yes
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 32: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 33: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 34: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 37: use: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 38: use: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 39: use: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 40: use: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 41: use: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 44: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 45: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 46: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 47: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 48: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 49: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 50: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 51: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 52: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 53: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 55: my: command not found
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 56: syntax error near unexpected token `('
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltool-update: line 56: `my %varhash = ();'
checking for intltool >= 0.50...  found
configure: error: Your intltool is too old.  You need intltool 0.50 or later.

[nix-shell:/tmp/kal/build/source]$ intltoolize --version
intltoolize (GNU intltool) 0.51.0

[nix-shell:/tmp/kal/build/source]$ which intltoolize
/nix/store/4d1p7vdm66lp7fdxsx46948bc3bkwggv-intltool-armv6l-unknown-linux-gnueabihf-0.51.0/bin/intltoolize

[nix-shell:/tmp/kal/build/source]$
{
system ? "buildPlatform",
pkgs ? import <nixpkgs> {},
}:
let
myPkgs =
if system == "buildPlatform" then pkgs
else if system == "raspberryPi" then pkgs.pkgsCross.raspberryPi
else throw "Unknown system ${system}";
in
let
mkRedshift = { pname, version, src, meta }:
myPkgs.stdenv.mkDerivation rec {
inherit pname version src meta;
nativeBuildInputs = [
myPkgs.autoconf
myPkgs.automake
myPkgs.gettext
myPkgs.intltool
myPkgs.libtool
myPkgs.pkg-config
myPkgs.python
];
configureFlags = [
"--enable-randr=no"
"--enable-geoclue2=no"
"--enable-drm=no"
"--enable-quartz=no"
"--enable-corelocation=no"
"--enable-gui=no"
"--enable-vidmode=no"
"--enable-ubuntu=no"
"--enable-apparmor=no"
];
preConfigure = "./bootstrap";
enableParallelBuilding = true;
};
in
mkRedshift rec {
pname = "redshift";
version = "1.12";
src = myPkgs.fetchFromGitHub {
owner = "jonls";
repo = "redshift";
rev = "v${version}";
sha256 = "12cb4gaqkybp4bkkns8pam378izr2mwhr2iy04wkprs2v92j7bz6";
};
meta = with myPkgs.lib; {
description = "Screen color temperature manager";
longDescription = ''
Redshift adjusts the color temperature according to the position
of the sun. A different color temperature is set during night and
daytime. During twilight and early morning, the color temperature
transitions smoothly from night to daytime temperature to allow
your eyes to slowly adapt. At night the color temperature should
be set to match the lamps in your room.
'';
license = licenses.gpl3Plus;
homepage = "http://jonls.dk/redshift";
platforms = platforms.unix;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment