templates
templates copied to clipboard
Setup CI
There should be github actions that tests the common commands on all flakes.
Would appreciate if someone can make a PR
Which commands should be executed ? nix flake check, nix flake update ?
I just run find . -name 'flake.nix' -execdir nix flake check \; most template trigger warning, trigger mass rebuild, ask question (I used yes no to automaticaly answer these)
build log:
$ yes no | find . -name 'flake.nix' -execdir nix flake check \;
warning: creating lock file '/tmp/templates/rust/flake.lock'
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'defaultPackage' is deprecated; use 'packages.<system>.default' instead
error: getting status of '/nix/store/4lcfpbvnzdpcbiqvxq3f1lqf6c0viqhs-source/rust/Cargo.toml': No such file or directory
(use '--show-trace' to show detailed location information)
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'overlay' is deprecated; use 'overlays.default' instead
warning: flake output attribute 'defaultPackage' is deprecated; use 'packages.<system>.default' instead
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'overlay' is deprecated; use 'overlays.default' instead
warning: flake output attribute 'defaultPackage' is deprecated; use 'packages.<system>.default' instead
error: a 'x86_64-darwin' with features {} is required to build '/nix/store/fim3h4zrlx3fxfzyxiwlp0fqivi3xxc4-cabal2nix-haskell-hello.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
(use '--show-trace' to show detailed location information)
warning: Git tree '/tmp/templates' is dirty
warning: creating lock file '/tmp/templates/python/flake.lock'
warning: Git tree '/tmp/templates' is dirty
error: getting status of '/nix/store/b7xpz83v7lyzqm0pzjmm85n41q684mly-source/poetry.lock': No such file or directory
(use '--show-trace' to show detailed location information)
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'defaultTemplate' is deprecated; use 'templates.default' instead
warning: Git tree '/tmp/templates' is dirty
warning: updating lock file '/tmp/templates/full/flake.lock':
• Updated input 'nix-bundle':
'github:matthewbauer/nix-bundle/223f4ffc4179aa318c34dc873a08cb00090db829' (2021-07-19)
→ 'github:NixOS/bundlers/b11f6a6b4d96ad424dc927fa211d1a1ac50179ef' (2022-06-24)
• Added input 'nix-bundle/nix-bundle':
'github:matthewbauer/nix-bundle/e9fa7e8a118942adafa8592a28b301ee23d37c13' (2022-08-10)
• Added input 'nix-bundle/nix-bundle/nixpkgs':
'github:NixOS/nixpkgs/1db42b7fe3878f3f5f7a4f2dc210772fd080e205' (2021-05-03)
• Added input 'nix-bundle/nix-utils':
'github:juliosueiras-nix/nix-utils/b44e1ffd726aa03056db9df469efb497d8b9871b' (2021-09-30)
• Added input 'nix-bundle/nix-utils/flake-utils':
'github:numtide/flake-utils/f7e004a55b120c02ecb6219596820fcd32ca8772' (2021-06-16)
• Added input 'nix-bundle/nix-utils/nixpkgs':
'github:nixos/nixpkgs/3788c68def67ca7949e0864c27638d484389363d' (2021-08-18)
• Updated input 'nix-bundle/nixpkgs':
'github:NixOS/nixpkgs/1db42b7fe3878f3f5f7a4f2dc210772fd080e205' (2021-05-03)
→ 'github:NixOS/nixpkgs/e0ed589d7422c1d7a1bdd1e81289e2428c6ec2a3' (2022-10-11)
• Updated input 'nixops/nixpkgs':
'github:NixOS/nixpkgs/0a6fa5ec69dbe8eff77cf3dc6311f3de065be724' (2022-03-10)
→ 'github:NixOS/nixpkgs/bbbaaa3e3530335bdefa5d4e682e3f1b4fbf218c' (2022-10-12)
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'defaultPackage' is deprecated; use 'packages.<system>.default' instead
warning: flake output attribute 'defaultBundler' is deprecated; use 'bundlers.<system>.default' instead
warning: flake output attribute 'overlay' is deprecated; use 'overlays.default' instead
warning: flake output attribute 'nixosModule' is deprecated; use 'nixosModules.default' instead
trace: warning: system.stateVersion is not set, defaulting to 22.11. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
warning: flake output attribute 'devShell' is deprecated; use 'devShells.<system>.default' instead
warning: flake output attribute 'defaultTemplate' is deprecated; use 'templates.default' instead
warning: Git tree '/tmp/templates' is dirty
warning: creating lock file '/tmp/templates/trivial/flake.lock'
warning: Git tree '/tmp/templates' is dirty
warning: Git tree '/tmp/templates' is dirty
warning: unknown flake output 'ciNix'
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'defaultPackage' is deprecated; use 'packages.<system>.default' instead
warning: Git tree '/tmp/templates' is dirty
warning: flake output attribute 'defaultPackage' is deprecated; use 'packages.<system>.default' instead
warning: flake output attribute 'overlay' is deprecated; use 'overlays.default' instead
warning: Git tree '/tmp/templates' is dirty
warning: Git tree '/tmp/templates' is dirty
warning: ignoring untrusted flake configuration setting 'allow-import-from-derivation'
warning: ignoring untrusted flake configuration setting 'extra-substituters'
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'
trace: No index state specified for haskell-project, using the latest index state that we know about (2022-08-05T00:00:00Z)!
[1/53/646 built] building ghc-8.6.5 (buildPhase): "inplace/bin/ghc-stage1" -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -eventlog -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants
I think we first need to update haskell template to avoid rebuild then we can fix other later
Another idea is just to filter it find . -name 'flake.nix' \! -path './haskell.nix//flake.nix' -execdir nix flake check \; just ignore this template.