-
Notifications
You must be signed in to change notification settings - Fork 27
feat(nix): remove submodules for nix build #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tried building on archlinux and got error:
|
a0254c4
to
069a0f4
Compare
@linkfrg should work now, you may build with nix build "github:ratson/ignis/069a0f4b23b7be1bbbe7e94de3c59f29908ad98a" |
Oh, i forgot it's a PR, sorry But anyway can't build: $ nix build "github:ratson/ignis/069a0f4b23b7be1bbbe7e94de3c59f29908ad98a" --extra-experimental-features nix-command -
-extra-experimental-features flakes
error: builder for '/nix/store/5fkcgj2j4llgbvbdwd8c6pi15ka8x609-ignis-0.3+date=20241123_069a0f4.drv' failed with exit code 1;
last 25 log lines:
> /build
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> mesonConfigurePhase flags: --prefix=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4 --libdir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/lib --libexecdir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/libexec --bindir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/bin --sbindir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/sbin --includedir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/include --mandir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/share/man --infodir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/share/info --localedir=/nix/store/c372qvnxdjjrw605yyp1arf6d5frsb00-ignis-0.3+date=20241123_069a0f4/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain
> The Meson build system
> Version: 1.5.2
> Source dir: /build/f4af2sjpysvpsrp9cvsch6lydzsh8n3y-source
> Build dir: /build/f4af2sjpysvpsrp9cvsch6lydzsh8n3y-source/build
> Build type: native build
> Project name: ignis
> Project version: undefined
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Program python3 found: YES (/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/bin/python3.12)
> Found pkg-config: YES (/nix/store/mi7q9m86m3rkqmc0niyvfv25ji9fxxha-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
> Run-time dependency glib-2.0 found: YES 2.80.4
> Run-time dependency gobject-introspection-1.0 found:
YES 1.80.1
> Run-time dependency gio-2.0 found: YES 2.80.4
> Run-time dependency gtk4 found: YES 4.14.5
> Run-time dependency gtk4-layer-shell-0 found: YES 1.0.3
>
> meson.build:31:0: ERROR: Subproject exists but has no meson.build file.
>
> A full log can be found at /build/f4af2sjpysvpsrp9cvsch6lydzsh8n3y-source/build/meson-logs/meson-log.txt
For full logs, run 'nix log /nix/store/5fkcgj2j4llgbvbdwd8c6pi15ka8x609-ignis-0.3+date=20241123_069a0f4.drv'. |
@linkfrg strange, I could build that. Would you try It should print the first few lines like
|
Btw I also rebooted to NixOS iso, tried building and got the same errors in both scenarios |
nix/ignis.nix
Outdated
postUnpack = '' | ||
pushd $sourceRoot | ||
mkdir -p subprojects | ||
cp -rf --no-preserve=mode ${gvc} ./subprojects/gvc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are copying the wrong folder here.
cp -rf --no-preserve=mode ${gvc}/. ./subprojects/gvc
works fine.
For more info, see why cp works like that
https://unix.stackexchange.com/a/412262
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the information 👍
069a0f4
to
005e3e8
Compare
@linkfrg PR updated, can be tested with |
$ nix build "github:ratson/ignis/005e3e8705aa11ab529677087fa0f877c6292935" --extra-experimental-features nix-command --extra-experimental-features flakes
error: builder for '/nix/store/0gackcrdr6wxl2zld07y2gyv07qfq2y0-ignis-0.3+date=20241124_005e3e8.drv' failed with exit code 1;
last 25 log lines:
> /build
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> mesonConfigurePhase flags: --prefix=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8 --libdir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/lib --libexecdir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/libexec --bindir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/bin --sbindir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/sbin --includedir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/include --mandir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/share/man --infodir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/share/info --localedir=/nix/store/bamiffh2zfv0zl65hhsm91zscvqsmg43-ignis-0.3+date=20241124_005e3e8/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain
> The Meson build system
> Version: 1.5.2
> Source dir: /build/8kg866bnj4jbm8bw2hw2cvccsp2xh1zj-source
> Build dir: /build/8kg866bnj4jbm8bw2hw2cvccsp2xh1zj-source/build
> Build type: native build
> Project name: ignis
> Project version: undefined
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Program python3 found: YES (/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/bin/python3.12)
> Found pkg-config: YES (/nix/store/mi7q9m86m3rkqmc0niyvfv25ji9fxxha-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
> Run-time dependency glib-2.0 found: YES 2.80.4
> Run-time dependency gobject-introspection-1.0 found:
YES 1.80.1
> Run-time dependency gio-2.0 found: YES 2.80.4
> Run-time dependency gtk4 found: YES 4.14.5
> Run-time dependency gtk4-layer-shell-0 found: YES 1.0.3
>
> meson.build:31:0: ERROR: Subproject exists but has no meson.build file.
>
> A full log can be found at /build/8kg866bnj4jbm8bw2hw2cvccsp2xh1zj-source/build/meson-logs/meson-log.txt
For full logs, run 'nix-store -l /nix/store/0gackcrdr6wxl2zld07y2gyv07qfq2y0-ignis-0.3+date=20241124_005e3e8.drv'. Maybe I'm doing something wrong? is there anyone else who gets this error |
Yes, I get the same error, the problem I see is that. when There needs to be a period (dot) after
|
005e3e8
to
c334576
Compare
@ratson Builds fine for me. But I don't think these lines are needed
Since subprojects/gvc already exists in the repo and we only need the contents of gvc |
@0x006E Could you try if removing those lines works on your computer? I got build error |
@ratson Maybe there are difference in how git or nix behaves across versions or system. This should be why your first changes didn't build on mine (those folders exist in mine when nix clones the repo)
Yea those two lines are no problem, it's fine if its kept. :) |
possibly, so keep the lines for compatibility reason.
|
c334576
to
c03c763
Compare
Couldn't test last week, was busy Builds successfully on the latest commit, so merging! |
By copying the submodule source during nix build,
remove the required submodule checkout introduced by #25.