srid / nixci

Define and build CI for Nix projects anywhere; superceded by Omnix https://omnix.page/om/ci.html
GNU Affero General Public License v3.0
108 stars 5 forks source link

0.4.0 does not like missing `default` for packages #64

Closed haraldh closed 2 months ago

haraldh commented 2 months ago
โฏ nix run github:nixos/nixpkgs/nixos-23.11#nixci
๐Ÿ .
๐Ÿš nix --extra-experimental-features 'nix-command flakes' eval '.#nixci.default' --json๏ธ
๐ŸŽ default.<root>
๐Ÿš nix --extra-experimental-features 'nix-command flakes' flake lock --no-update-lock-file .๏ธ
๐Ÿš nix --extra-experimental-features 'nix-command flakes' build '/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source#default' -L --no-link --print-out-paths --override-input flake . --refresh -j auto๏ธ
warning: not writing modified lock file of flake 'path:/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source':
/nix/store/c7n3cr2hymzpni8fd0cv4j5pr2xbkg8m-nixsgx-test-sgx-azure.tar.gz
/nix/store/bf1730sgvb4kwsr3id994klcqdkspilf-azure-dcap-client-1.12.3
/nix/store/4iar33n8dz0f033mmqkzk69bjiz3g5j9-nodejs-18.19.1
/nix/store/yxvz1h4g8cxzk70vi5kjx6pyb67s3qan-libuv-1.48.0
/nix/store/48xv2c15bvr5gqi028lw160c2vjmw4bq-nixsgx-test-sgx-dcap.tar.gz
/nix/store/9x48zb3qa51pg6zj7m1kpara9gzkq4r6-python3.11-gramine-1.6
/nix/store/j9vckplq61jjplfr9bwkg7rq7622cdgs-sgx-dcap-1.21
/nix/store/vh8hdkqavb3p1x82ylllxdwjqdqlgsby-sgx-sdk-2.24.100.3
/nix/store/fnxm745qy3895d4nc5ms6717rzmmjcnv-sgx-ssl-2.24_3.0.13
/nix/store/j3sb4rqpni5psm3ihx6l24c5hki8q17z-protobuf-c-1.5.0
/nix/store/hfggnmxs06yn08q60247vc8a52hkvkrf-sgx-psw-2.24.100.3
/nix/store/6bkj3v09jg84srg44p32pw2kbx9b91vw-restart-aesmd

โฏ nix run github:nixos/nixpkgs/nixos-24.05#nixci -- build
๐Ÿ .
๐Ÿš nix --extra-experimental-features 'nix-command flakes' show-config --json๏ธ
๐Ÿš nix eval '.#nixci.default' --json๏ธ
๐Ÿš nix eval --impure --json --expr 'builtins.getFlake "github:nix-systems/empty"'๏ธ
๐Ÿš nix eval --impure --json --expr 'import /nix/store/j0r8d7rdn4vrisl78v8ckl4hny4q9ipi-source'๏ธ
๐Ÿš nix show-config --json๏ธ
๐ŸŽ default.<root>
๐Ÿš nix flake lock --no-update-lock-file .๏ธ
๐Ÿš nix build '/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source#default' -L --no-link --print-out-paths --override-input flake . --override-input systems github:nix-systems/empty --refresh -j auto๏ธ
warning: not writing modified lock file of flake 'path:/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source':
โ€ข Updated input 'systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
  โ†’ 'github:nix-systems/empty/23d743284b73ae69caf0cb7874edf05c0c631a1f' (2024-02-23)
error: flake 'path:/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source' does not provide attribute 'packages.x86_64-linux.default', 'legacyPackages.x86_64-linux.default' or 'default'
Error: devour-flake failed to run (exited: 1)
srid commented 2 months ago

Yea, this is same as https://github.com/srid/devour-flake/issues/27

It is due to nixpkgs not using the latest devour-flake. I plan to make a new release of nixci, so we can address this when upstreaming that new version to nixpkgs.

srid commented 2 months ago

https://github.com/srid/nixci/releases/tag/0.5.0 released

Somebody will have to upstream it to nixpkgs.

srid commented 2 months ago

0.5.0 was released is now in nixpkgs-unstable.

haraldh commented 2 months ago

Thank you!