Skip to content

OpenFang v0.6.0 cannot be built using the official Nix flake.nix #1092

@FrantaNautilus

Description

@FrantaNautilus

Description

OpenFang build using flake.nix fails due to missing dependencies. This causes the OpenFang to be unavailable for NixOS users and users of Nix package manager.

Fix for this bug is in PR #1086

Expected Behavior

The official flake.nix is expected to provide functional build instructions.

Steps to Reproduce

  1. clone OpenFang repository
  2. run nix build .#openfang-cli
  3. build fails due to missing dependency

OpenFang Version

0.6.0

Operating System

Linux (x86_64)

Logs / Screenshots

$ nix build .#openfang-cli
error: Cannot build '/nix/store/1zbqgwnr37hmdym827swqxw5s2c1imhv-openfang-cli-deps-0.6.0.drv'.
       Reason: builder failed with exit code 101.
       Output paths:
         /nix/store/z7jrjajjxg6j9vs30z664jqk0yxn1wrd-openfang-cli-deps-0.6.0
       Last 25 log lines:
       >   cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM
       >   CC_KNOWN_WRAPPER_CUSTOM = None
       >   cargo:rerun-if-env-changed=RANLIBFLAGS
       >   RANLIBFLAGS = None
       >   cargo:rerun-if-env-changed=HOST_RANLIBFLAGS
       >   HOST_RANLIBFLAGS = None
       >   cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64_unknown_linux_gnu
       >   RANLIBFLAGS_x86_64_unknown_linux_gnu = None
       >   cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64-unknown-linux-gnu
       >   RANLIBFLAGS_x86_64-unknown-linux-gnu = None
       >   running cd "/build/source/target/release/build/openssl-sys-baf13e02643b3deb/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="gcc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/build/source/target/release/build/openssl-sys-baf13e02643b3deb/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-shared" "no-module" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-ssl3" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-w"
       >   cargo:warning=configuring OpenSSL build: Command 'perl' not found. Is perl installed?
       >   cargo:warning=openssl-src: failed to build OpenSSL from source
       >
       >   --- stderr
       >
       >
       >
       >   Error configuring OpenSSL build:
       >       Command 'perl' not found. Is perl installed?
       >       Command failed: cd "/build/source/target/release/build/openssl-sys-baf13e02643b3deb/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="gcc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/build/source/target/release/build/openssl-sys-baf13e02643b3deb/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-shared" "no-module" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-ssl3" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-w"
       >
       >
       >
       > warning: build failed, waiting for other jobs to finish...
       For full logs, run:
         nix log /nix/store/1zbqgwnr37hmdym827swqxw5s2c1imhv-openfang-cli-deps-0.6.0.drv
error: Cannot build '/nix/store/hyqdp3s5k828khiby064m8i53nivib08-openfang-cli-0.6.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/l8yc18ixjx5wb3bdvvykhzanp5ylz3rj-openfang-cli-0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions