Dear Community,
I am building my first package and am running into an issue with boost (presumably).
This is the flake I am using:
{
description = "Bellmans Gapc in Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
}: let
# Systems supported
allSystems = [
"x86_64-linux" # 64-bit Intel/AMD Linux
"aarch64-linux" # 64-bit ARM Linux
];
# Helper to provide system-specific attributes
forAllSystems = f:
nixpkgs.lib.genAttrs allSystems (system:
f {
pkgs = import nixpkgs {inherit system;};
});
in {
packages = forAllSystems ({pkgs}: {
default = let
binName = "bellmansgapc";
boostOverride = pkgs.boost.override {
enableShared = false;
enabledStatic = true;
};
dependencies = with pkgs; [
gnumake
flex
bison
boostOverride
mercurial
];
version = "2023.07.05";
in
pkgs.stdenv.mkDerivation {
name = "gapc-${version}";
src = pkgs.fetchFromGitHub {
owner = "jlab";
repo = "gapc";
rev = "${version}";
sha256 = "sha256-OzGf8Z4BzHEPmonlOvvvg5G1y1mtrkWSxOHPfBJU7kU=";
};
buildInputs = dependencies;
};
});
};
}
this is the log:
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/9fmcgbffc03qadlbzmm7f5zj0sv62djf-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./config.sub
Updating Autotools / GNU config script to a newer upstream version: ./config.guess
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configure flags: --prefix=/nix/store/6f6a9ad86z7rpdcn3vrzaiw391x23695-gapc-2023.07.05
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for bash... /nix/store/lf0wpjrj8yx4gsmw2s3xfl58ixmqk8qa-bash-5.2-p15/bin/bash
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... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for a BSD-compatible install... /nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin/install -c
checking for a sed that does not truncate output... /nix/store/g5p3ky90xa05ggg5szyb0pbbl2vp7n03-gnused-4.9/bin/sed
checking whether C compiler accepts -std=c11... yes
checking whether C compiler accepts -ffast-math... yes
checking for gcc option to produce PIC... -fPIC
checking whether C++ compiler accepts -std=c++17... yes
checking whether C++ compiler accepts -D_XOPEN_SOURCE=500... yes
checking whether C++ compiler accepts -MMD -MP... yes
checking whether C++ compiler accepts -Wall -Wnon-virtual-dtor -Wno-unused-variable -Wno-parentheses... yes
checking for OpenMP flag of C++ compiler... -fopenmp
checking for flex... /nix/store/vnxzm4k659v0drwnpyqvh4ixwhr2rj9n-flex-2.6.4/bin/flex
checking for bison... /nix/store/j1d298im2my67d0skdkd9ys1y4v0dx5f-bison-3.8.2/bin/bison
checking for hg... /nix/store/rbsqynlfkqgm4qbxcl78np14lll56n6h-mercurial-6.5.2/bin/hg
checking for grep that handles long lines and -e... /nix/store/p2r51wfg9m3ga7pp7avslpfhfa7w5y83-gnugrep-3.11/bin/grep
checking for gawk... gawk
checking for bison version... 3.8.2
checking for boostlib >= 1.36... yes
checking whether the Boost::Program_Options library is available... yes
configure: error: Could not find a version of the library!
I am a little lost, as I dont understand configure too well and the error is more than cryptic in my opinion.
is there any information I am missing? Is this the right place to ask?