snowfallorg/nixos-conf-editor

Build fails

Closed this issue · 5 comments

  nixos-conf-editor = (import (pkgs.fetchFromGitHub {
    owner = "vlinkz";
    repo = "nixos-conf-editor";
    rev = "0.0.4";
    sha256 = "sha256-esyfFl72t5k2XNq6DCRgfIC6TYgIMyGKla9GaEEN0Oo=";
  })) {};
   Compiling relm4 v0.5.0-beta.1 (https://github.com/Relm4/Relm4?tag=v0.5.0-beta.1#a7d24329)
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
  --> /build/nixos-conf-editor-0.0.4-vendor.tar.gz/relm4/src/shared_state.rs:35:6
   |
35 | impl<Data> SharedState<Data>
   |      ^^^^
...
51 |     pub const fn new() -> Self {
   |     -------------------------- function declared as const here
   |
   = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information

error[E0658]: function pointer casts are not allowed in constant functions
  --> /build/nixos-conf-editor-0.0.4-vendor.tar.gz/relm4/src/shared_state.rs:53:29
   |
53 |             data: Lazy::new(|| RwLock::new(Data::default())),
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information

error[E0658]: function pointer casts are not allowed in constant functions
  --> /build/nixos-conf-editor-0.0.4-vendor.tar.gz/relm4/src/shared_state.rs:54:36
   |
54 |             subscribers: Lazy::new(|| RwLock::new(Vec::default())),
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `relm4` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
[3/5] Generating data/dev.vlinkz.NixosConfEditor.metainfo.xml with a custom command
FAILED: src/nixos-conf-editor 
/nix/store/p643r4aczmzb0dhyrx3dj592f0s5v7xj-coreutils-9.0/bin/env CARGO_HOME=/build/nfar6ph3pgm6kcyqrk9zdiyafb5xgcfn-source/build/cargo-home /nix/store/2gwhsd2jcz90zni0pwlhhfbmfbflixws-cargo-1.60.0/bin/cargo build --manifest-path /build/nfar6ph3pgm6kcyqrk9zdiyafb5xgcfn-source/Cargo.toml --target-dir /build/nfar6ph3pgm6kcyqrk9zdiyafb5xgcfn-source/build/src --release && cp src/release/nixos-conf-editor src/nixos-conf-editor
ninja: build stopped: subcommand failed.
error: builder for '/nix/store/2v8pjhcxrcnsgsv34j2jdw4y8wk21gxa-nixos-conf-editor-0.0.4.drv' failed with exit code 1

  • system: "x86_64-linux"
  • host os: Linux 5.15.67, NixOS, 22.05 (Quokka), 22.05.3201.bcc68429a50
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.8.1
  • channels(root): "home-manager-22.05.tar.gz, nixos-22.05, nixos-hardware, nixos-unstable"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Should be fixed in version 0.0.5

(git tag is missing)

that issue is fixed, but now it get:

Found ninja-1.10.2 at /nix/store/wfdrrpzvxslxzq1jc024xkp3n74wwgcn-ninja-1.10.2/bin/ninja
meson: enabled parallel building
building
build flags: -j16 -l16
[0/5] Generating src/cargo-build with a custom command
error: package `gtk4-sys v0.5.0 (https://github.com/gtk-rs/gtk4-rs#58c71871)` cannot be built because it requires rustc 1.63 or newer, while the currently active rustc version is 1.60.0
[3/5] Generating data/dev.vlinkz.NixosConfEditor.metainfo.xml with a custom command
FAILED: src/nixos-conf-editor 
/nix/store/p643r4aczmzb0dhyrx3dj592f0s5v7xj-coreutils-9.0/bin/env CARGO_HOME=/build/j3sqrz71bxmf1wcyi8dq6p9db2mphh4q-source/build/cargo-home /nix/store/2gwhsd2jcz90zni0pwlhhfbmfbflixws-cargo-1.60.0/bin/cargo build --manifest-path /build/j3sqrz71bxmf1wcyi8dq6p9db2mphh4q-source/Cargo.toml --target-dir /build/j3sqrz71bxmf1wcyi8dq6p9db2mphh4q-source/build/src --release && cp src/release/nixos-conf-editor src/nixos-conf-editor
ninja: build stopped: subcommand failed.
error: builder for '/nix/store/ar310naxsd2ziv4c51bg9hqyh0dg8r5v-nixos-conf-editor-0.0.5.drv' failed with exit code 1

same as snowfallorg/nix-software-center#2

Yep forgot to actually tag release 😅 should work now

Is this fixed?

Yes, works now with latest commit.

  nixos-conf-editor = (import (pkgs.fetchFromGitHub {
    owner = "vlinkz";
    repo = "nixos-conf-editor";
    #rev = "0.0.5";
    rev = "eb28cb609b2342abfadc0d70fb264ff48a137f7f";
    hash = "sha256-Z2o57YUppTP15hCOop+CaAKodNXChKs+g/MR6TXKJUM=";
  })) {};