Loading...
Loading...
Compare original and translation side by side
flake.nixhttps://nixomatic.com/?p=nodejs,python3nix developflake.nixhttps://nixomatic.com/?p=nodejs,python3nix developnixwhich nixnixdockerwhich dockernixwhich nixnixdockerwhich docker## Development Environmentnixomatic.comflake.nixflake.nixnix develop --command -- <cmd>package.jsonnodejsCargo.tomlrustc,cargogo.modgorequirements.txtsetup.pypyproject.tomlpython3Gemfilerubybuild.gradlebuild.gradle.ktspom.xmljdkmix.exselixir*.sln*.csproj*.fsprojdotnet-sdkcomposer.jsonphpPackage.swiftswiftdune-project*.opamocamlstack.yaml*.cabalghc,cabal-installpubspec.yamldartzig.zonbuild.zigzigMakefilegnumakeCMakeLists.txtcmakemeson.buildmesonJustfilejustTaskfile.ymlgo-taskRakefileruby.eslintrc*eslint.config.*Dockerfiledocker.terraform*terraformserverless.ymlnodejsMakefileprotocprotobufnixomatic.com## Development Environmentflake.nixflake.nixnix develop --command -- <cmd>package.jsonnodejsCargo.tomlrustc,cargogo.modgorequirements.txtsetup.pypyproject.tomlpython3Gemfilerubybuild.gradlebuild.gradle.ktspom.xmljdkmix.exselixir*.sln*.csproj*.fsprojdotnet-sdkcomposer.jsonphpPackage.swiftswiftdune-project*.opamocamlstack.yaml*.cabalghc,cabal-installpubspec.yamldartzig.zonbuild.zigzigMakefilegnumakeCMakeLists.txtcmakemeson.buildmesonJustfilejustTaskfile.ymlgo-taskRakefileruby.eslintrc*eslint.config.*Dockerfiledocker.terraform*terraformserverless.ymlnodejsprotocMakefileprotobuf| Project file / indicator | Nix packages |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| 项目文件 / 标识 | Nix 包 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
需要 | |
需要 | |
需要 | |
需要 | |
需要 | |
需要 | |
https://nixomatic.com/?p=pkg1,pkg2,pkg3phttps://nixomatic.com/?p=nodejs,gnumake@versionhttps://nixomatic.com/?p=nodejs@20.11.1,python3:revisionhttps://nixomatic.com/?p=python3:3b93cf5https://nixomatic.com/?p=pkg1,pkg2,pkg3phttps://nixomatic.com/?p=nodejs,gnumake@versionhttps://nixomatic.com/?p=nodejs@20.11.1,python3:revisionhttps://nixomatic.com/?p=python3:3b93cf5nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-config \
--command -- <cmd>nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-confignix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-config \
--command -- <cmd>nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-configdocker run -v nix-store:/nix -v "$(pwd):/workspace" -w /workspace --rm nixos/nix nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-config \
--command -- <cmd>docker run -v nix-store:/nix -v "$(pwd):/workspace" -w /workspace --rm -it nixos/nix nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-config-v "$(pwd):/workspace" -w /workspacedocker run -v nix-store:/nix -v "$(pwd):/workspace" -w /workspace --rm nixos/nix nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-config \
--command -- <cmd>docker run -v nix-store:/nix -v "$(pwd):/workspace" -w /workspace --rm -it nixos/nix nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-config-v "$(pwd):/workspace" -w /workspaceflake.nixflake.nixnix develop --command -- <cmd>## Development Environmentnixomatic.com/?p=https://nixomatic.com/?p=pkg1,pkg2,...nixdockercommand not found: cmake## Development Environmentflake.nixflake.nixnix develop --command -- <cmd>nixomatic.com/?p=## Development Environmenthttps://nixomatic.com/?p=pkg1,pkg2,...nixdockercommand not found: cmake## Development Environment## Development Environmentnixomatic.comnixomatic.com## Development Environment<packages>undefined<packages>undefinednix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-confignix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-configdocker run -v nix-store:/nix -v "$(pwd):/workspace" -w /workspace --rm -it nixos/nix nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-configundefineddocker run -v nix-store:/nix -v "$(pwd):/workspace" -w /workspace --rm -it nixos/nix nix \
--extra-experimental-features 'nix-command flakes' \
develop 'https://nixomatic.com/?p=<packages>' \
--accept-flake-configundefined| Error | Cause | Fix |
|---|---|---|
| Package missing from URL | Add the package to the |
| Network issue or invalid URL | Check internet connectivity and verify the URL is well-formed |
| Unknown package name | Verify the package name exists in nixpkgs (search at https://search.nixos.org/packages) |
| Docker not installed | Fall back to Nix, or ask user to install Docker |
| Nix not installed | Fall back to Docker, or ask user to install Nix |
| Old Nix without flakes flag | The |
| Permission denied on Docker socket | User not in docker group | Suggest |
| 错误信息 | 原因 | 解决方法 |
|---|---|---|
| URL中缺失对应包 | 将该包添加到 |
| 网络问题或URL无效 | 检查网络连接并验证URL格式是否正确 |
| 包名不存在 | 验证包名是否在nixpkgs中存在(可在https://search.nixos.org/packages搜索) |
| Docker未安装 | 切换到Nix,或要求用户安装Docker |
| Nix未安装 | 切换到Docker,或要求用户安装Nix |
| Nix版本过旧,未启用flakes | |
| Docker套接字权限被拒绝 | 用户不在docker用户组中 | 建议执行 |