Skip to content

Instantly share code, notes, and snippets.

@thefloweringash
Created December 15, 2019 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefloweringash/12be40a49c515007970de013aba4e064 to your computer and use it in GitHub Desktop.
Save thefloweringash/12be40a49c515007970de013aba4e064 to your computer and use it in GitHub Desktop.
nix-build -A kicad
$ nix-build -A kicad
these derivations will be built:
/nix/store/fh45brl66r6qhxfpqgilv01120gc9xmh-kicad-base-5.1.5.drv
/nix/store/dv10cqlpiyl9h69gcx8m36irrwqhnsss-kicad-5.1.5.drv
building '/nix/store/fh45brl66r6qhxfpqgilv01120gc9xmh-kicad-base-5.1.5.drv'...
unpacking sources
unpacking source archive /nix/store/bjm3yx30jjfrq3g3y9al52kqiq0hysi4-source
source root is source
patching sources
applying patch /nix/store/bhvpy1h68ib43k01w0yh46lplibc6s9y-dfb1318a3989e3d6f9f2ac33c924ca5030ea273b.patch
patching file pcbnew/kicad_plugin.cpp
Hunk #1 succeeded at 1933 (offset -105 lines).
patching file pcbnew/kicad_plugin.h
Hunk #2 succeeded at 245 (offset -7 lines).
updateAutotoolsGnuConfigScriptsPhase
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/share/doc/ -DCMAKE_INSTALL_INFODIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/include -DCMAKE_INSTALL_SBINDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/fryhk5fhwpxcflcvl8mbn4r95899l7wn-binutils-2.31.1/bin/strip -DCMAKE_RANLIB=/nix/store/fryhk5fhwpxcflcvl8mbn4r95899l7wn-binutils-2.31.1/bin/ranlib -DCMAKE_AR=/nix/store/fryhk5fhwpxcflcvl8mbn4r95899l7wn-binutils-2.31.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5 -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_PYTHON3=ON -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON -DKICAD_SPICE=ON
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /nix/store/j8xia5q96pjmkhbmv8q1073fh2pzvnis-gcc-wrapper-8.3.0/bin/gcc
-- Check for working C compiler: /nix/store/j8xia5q96pjmkhbmv8q1073fh2pzvnis-gcc-wrapper-8.3.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /nix/store/j8xia5q96pjmkhbmv8q1073fh2pzvnis-gcc-wrapper-8.3.0/bin/g++
-- Check for working CXX compiler: /nix/store/j8xia5q96pjmkhbmv8q1073fh2pzvnis-gcc-wrapper-8.3.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- KiCad install dir: </nix/store/m2jgmd1rs2l1icxjpy6qivf9xyk75bb7-kicad-base-5.1.5>
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for iso646.h
-- Looking for iso646.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for C++ include cmath
-- Looking for C++ include cmath - found
-- Looking for asinh
-- Looking for asinh - found
-- Looking for acosh
-- Looking for acosh - found
-- Looking for atanh
-- Looking for atanh - found
-- Performing Test HAVE_CMATH_ISINF
-- Performing Test HAVE_CMATH_ISINF - Success
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getc_unlocked
-- Looking for getc_unlocked - found
-- Performing Test COMPILER_SUPPORTS_WSUGGEST_OVERRIDE
-- Performing Test COMPILER_SUPPORTS_WSUGGEST_OVERRIDE - Success
-- Performing Test COMPILER_SUPPORTS_WVLA
-- Performing Test COMPILER_SUPPORTS_WVLA - Success
-- Performing Test COMPILER_SUPPORTS_WSHADOW
-- Performing Test COMPILER_SUPPORTS_WSHADOW - Success
-- Found OpenGL: /nix/store/lwmbwlbrjzknq2dcj8d2yr5jsf040m2r-libGL-1.2.0/lib/libOpenGL.so
-- Found GLEW: /nix/store/1wna5bzgprfim3ks7cqrq3sh5zqhkml4-glew-2.1.0-dev/include
-- Check for installed GLEW -- found
-- Found GLM: /nix/store/ckm7raind5ancpisdiyyr88qn261j82q-glm-0.9.8.5/include (found suitable version "0.9.8.5", minimum required is "0.9.5.1")
-- Found CURL: /nix/store/6x486vpzb3hv8pfcgr8y6ksmh7wn5m0k-curl-7.67.0/lib/libcurl.so (found version "7.67.0")
-- Found PkgConfig: /nix/store/hihvci6vhcmlqmywlfhn97s1lc0njapm-pkg-config-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for module 'cairo'
-- Found cairo, version 1.16.0
-- Found Cairo: /nix/store/00vv3d9d4wq8j80k2fy9zqacshqwrnb9-cairo-1.16.0/lib/libcairo.so (found suitable version "1.16.0", minimum required is "1.12")
-- Checking for module 'pixman-1'
-- Found pixman-1, version 0.38.4
-- Found Pixman: /nix/store/h8cr5r89nb1d0cl64khxkbf2h8mgdp4y-pixman-0.38.4/lib/libpixman-1.so (found suitable version "0.38.4", minimum required is "0.30")
-- Found Boost: /nix/store/5435f7213xzl0sd8w1ia9060j0wyzvd4-boost-1.69.0-dev/include (found suitable version "1.69.0", minimum required is "1.54.0")
-- Found ngspice: /nix/store/8mvfzxdkfc0kkqmngxi309cslzkh73g3-libngspice-30/include
CMake Error at CMakeLists.txt:636 (find_package):
By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OCE", but
CMake did not find one.
Could not find a package configuration file provided by "OCE" (requested
version 0.16) with any of the following names:
OCEConfig.cmake
oce-config.cmake
Add the installation prefix of "OCE" to CMAKE_PREFIX_PATH or set "OCE_DIR"
to a directory containing one of the above files. If "OCE" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/build/source/build/CMakeFiles/CMakeOutput.log".
builder for '/nix/store/fh45brl66r6qhxfpqgilv01120gc9xmh-kicad-base-5.1.5.drv' failed with exit code 1
cannot build derivation '/nix/store/dv10cqlpiyl9h69gcx8m36irrwqhnsss-kicad-5.1.5.drv': 1 dependencies couldn't be built
error: build of '/nix/store/dv10cqlpiyl9h69gcx8m36irrwqhnsss-kicad-5.1.5.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment