Building from Source on NixOS (with nix develop
) - could not find BOOST
#614
Labels
bug
Something isn't working
needs verification
Description of the issue needs to be verified by the team
Pre-submit checks
Describe the bug
I tried to build the latest version of the AppImage launcher from source on NixOS.
However, I do get build errors due to missing
boost
dependencies.Right off the bat, a word of caution:
The issue might not be due to any errors with the source files of this project, but the author's ignorance on handling a NixOS development 🙃
How I set up my development environment
I followed this little tutorial:
which cmake
returns:/nix/store/f5ckbfw9yyk0s763h0wdb2ia4f1bayav-python3.11-cmake-3.27.8/bin/cmake
Packages listed in BUILD.md (and Nix packages I used instead)
Expected behavior
AppImageLauncher will be built from source on NixOS when executing the command given in the
[BUILD.md](https://github.com/TheAssassin/AppImageLauncher/blob/master/BUILD.md)
file, as noted in the readme:Speculation:
CMakeLists.txt
needs to be tweaked to make thepkg-config
work.pkg-config
toflake.nix
, but this did not change the output. It also will still return the following message when I checkwhich pkg-config
:which: no pkg-config in (/run/wrappers/bin:/home/<user>/.nix-profile/bin:/nix/profile/bin:/home/<user>/.local/state/nix/profile/bin:/etc/profiles/per-user/<user>/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin)
AppImageLauncher can be built from source on NixOS when executing the command given in the
[BUILD.md](https://github.com/TheAssassin/AppImageLauncher/blob/master/BUILD.md)
file, as noted in the readme.Caveats
BUILD.md
file did not match the nix package names.flake.nix
below in Distribution and desktop environment.which boost
tells me that there is no boost version available (despite it being listed in myflake.nix
.Steps to reproduce the issue
~/development
,cd
into it.nix flake init
.flake.nix
to include the needed packages (see _Distribution and desktop environment).nix develop
cd
intoAppImageLauncher
, then executegit submodule update --init --recursive
build
directory and switch into it:mkdir build && cd build
export PREFIX="/usr/local/"
BUILD.md
:cmake .. -DCMAKE_INSTALL_PREFIX="$PREFIX" -DUSE_SYSTEM_BOOST=true
Screenshots
(none)
Output after executing the build command:
Distribution and desktop environment
Output of
cat /etc/*release
:nix.flake
contents(relevant for packages used for the build environment):
More specifics on NixOS
Output of
nix-shell -p nix-info --run "nix-info -m"
:Shared Libraries
Potentially interesting as well, the output of
ldd $(which cmake)
:Installed AppImageLauncher version
(As I failed building AppImageLauncher, I'll provide the commit instead.)
Output of
git rev-parse HEAD
:(On the master branch of the project, cloned yesterday, 2023-12-25.)
List of AppImages you tried
(None yet, as I failed to build the AppImageLauncher.)
Additional context
I was trying to set up AppImageLauncher on NixOS, so I could neatly handle any AppImages.
(More or less as a fallback, if the vast pool of Nix Packages failed me.)
In my case, I installed NixOS on a new machine.
I had trouble installing Obsidian using the nix package, due to an outdated dependency that made the build fail.
So I went for the AppImage.
Which is somewhat finicky to set up "neatly" (i.e. for the app launcher, so it's shown like 'regular software' installed with the respective package manager - by storing an icon and a
.desktop
-file at the respective location as per FHS). Since it's always the same steps, you'd think some distros would provide programs to do it for you out of the box. Which is when I looked for something that does just that; and how I discovered this neat project.The text was updated successfully, but these errors were encountered: