crate2nix
crate2nix builds your cargo-based rust project crate-by-crate with nix
파일 탐색기
최종 버전 다운로드 (.zip)- bug_report.md
- static-docs.yml
- tests-nix-linux.yml
- tests-nix-macos.yml
- update-flake-lock.yml
- dependabot.yml
- command.rs
- config.rs
- json_output.rs
- lib.rs
- lock.rs
- main.rs
- metadata.rs
- nix_build.rs
- prefetch.rs
- render.rs
- resolve.rs
- sources.rs
- test.rs
- util.rs
- default.nix
- dependencyDerivations.nix
- dependencyFeatures.nix
- enableFeatures.nix
- expandFeatures.nix
- packageFeatures.nix
- run.nix
- tests.nix
- default.nix
- Cargo-workspace.toml.tera
- Cargo.nix.tera
- crate2nix-sources.nix.tera
- self_build_up_to_date.rs
- Cargo.json
- Cargo.lock
- Cargo.nix
- Cargo.toml
- crate-hashes.json
- default-json.nix
- default.nix
- deny.toml
- flake-module.nix
- mk-crate2nix.nix
- rustfmt.toml
- extensions.json
- launch.json
- favicon.svg
- 10_flake_template_new.md
- 20_installing_crate2nix.md
- 30_running_crate2nix_without_install.md
- 10_generating.md
- 20_auto_generating.mdx
- 10_building_binaries.md
- 20_choosing_features.md
- 30_crateOverrides.md
- 40_tests.md
- 10_custom_toolchains.md
- 20_using_a_rust_overlay.md
- 10_building_fetched_sources.md
- 20_generating_for_fetched_sources.md
- 00_intro.md
- 05_code.md
- 10_docs.md
- 90_release.md
- 10_structure_and_phases.md
- 50_tools_nix.mdx
- 90_inspiration.md
- 10_runtime_dependencies.md
- 20_known_restrictions.md
- 90_CHANGELOG.md
- index.mdx
- config.ts
- env.d.ts
- .gitignore
- astro.config.mjs
- flake-module.nix
- package-lock.json
- package.json
- README.md
- tsconfig.json
- build-from-json.nix
- flake-module.nix
- default.nix
- package.nix
- README.md
- runTest.nix
- flake-module.nix
- flake-module.nix
- flakeInput.nix
- nixpkgs.nix
- lib.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- bin_not_to_be_compiled.rs
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- override-root-features.nix
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- main.rs
- Cargo.lock
- Cargo.nix
- Cargo.toml
- crate-hashes.json
- default-with-customBuildRustCrate.nix
- default-with-customBuildRustCrateForPkgs.nix
- default.nix
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- lib.rs
- Cargo.lock
- Cargo.toml
- test.nix
- lib.rs
- main.rs
- echo_foo_test.rs
- .gitignore
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- snowflake.txt
- test.nix
- main.rs
- build.rs
- Cargo.lock
- Cargo.nix
- Cargo.toml
- crate-hashes.json
- lib.rs
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- default.nix
- main.rs
- Cargo.lock
- Cargo.toml
- default.nix
- lib.rs
- build.rs
- Cargo.lock
- Cargo.toml
- default.nix
- main.rs
- Cargo.lock
- Cargo.toml
- result
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- hello
- integration_test.rs
- Cargo.json
- Cargo.lock
- Cargo.toml
- test-json.nix
- test.nix
- lib.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- bin1.rs
- bin2.rs
- main.rs
- Cargo.lock
- Cargo.toml
- sources.nix
- .gitignore
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- build.rs
- Cargo.lock
- Cargo.toml
- result
- lib.rs
- Cargo.lock
- Cargo.toml
- test.nix
- tests.rs
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.nix
- Cargo.toml
- crate-hashes.json
- lib.rs
- main.rs
- Cargo.lock
- Cargo.toml
- test.nix
- main.rs
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- default.nix
- main.rs
- Cargo.toml
- somelib.rs
- Cargo.toml
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.toml
- main.rs
- Cargo.toml
- main.rs
- Cargo.toml
- main.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- main.rs
- Cargo.toml
- main.rs
- Cargo.toml
- Cargo.lock
- Cargo.toml
- crate-hashes.json
- flake-module.nix
- flake-module.nix
- main.rs
- .envrc
- .gitignore
- Cargo.lock
- Cargo.toml
- flake.lock
- flake.nix
- rust-toolchain.toml
- .envrc
- .gitignore
- cargo.sh
- CHANGELOG.md
- CLAUDE.md
- CONTRIBUTING.md
- crate2nix.sh
- default.nix
- flake.lock
- flake.nix
- LICENSE-APACHE
- LICENSE-MIT
- nix-test.sh
- nixpkgs-fmt.sh
- out-of-tree-sources.md
- README.md
- regenerate_cargo_nix.sh
- RELEASE.md
- run_tests.sh
- shell.nix
- tests.nix
- tools.nix
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/nix-community/crate2nix
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd crate2nix
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Rust
보통 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
nix build -f Cargo.nix rootCrate.build
이 명령어를 터미널에 그대로 입력해 실행하세요.
crate2nix generate # creates Cargo.nix
이 명령어를 터미널에 그대로 입력해 실행하세요.
resolvedJson = ./Cargo.json;
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
