2023-07-08 11:27:06 +02:00
# Nix 软件打包入门
2023-06-27 04:53:11 +02:00
TODO
2023-06-30 11:00:03 +02:00
## 1. stdenv 构建介绍
2023-06-27 04:53:11 +02:00
TODO
2023-06-30 11:00:03 +02:00
## 2. language specific frameworks
2023-06-27 04:53:11 +02:00
TODO
## References
2023-06-27 12:40:59 +02:00
- [NixOS 系列(三):软件打包,从入门到放弃 - LanTian ](https://lantian.pub/article/modify-computer/nixos-packaging.lantian/ )
2023-07-07 19:44:18 +02:00
- [How to Learn Nix, Part 28: The standard environment ](https://ianthehenry.com/posts/how-to-learn-nix/the-standard-environment/ )
2023-06-27 04:53:11 +02:00
- [stdenv - Nixpkgs Manual ](https://github.com/NixOS/nixpkgs/tree/nixos-unstable/doc/languages-frameworks )
2023-06-30 11:00:03 +02:00
- [languages-frameworks - Nixpkgs Manual ](https://github.com/NixOS/nixpkgs/tree/nixos-unstable/doc/stdenv )
2023-07-08 11:46:46 +02:00
- Useful tools:
- [nurl ](https://github.com/nix-community/nurl ): Generate Nix fetcher calls from repository URLs
- [nix-init ](https://github.com/nix-community/nix-init ): Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more
2023-12-13 04:13:51 +01:00
- Source Code:
- [pkgs/build-support/trivial-builders/default.nix - runCommand ](https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/build-support/trivial-builders/default.nix#L21-L49 )
- [pkgs/build-support/setup-hooks/make-wrapper.sh ](https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/build-support/setup-hooks/make-wrapper.sh )
- FHS related
- [pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix ](https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix ): `pkgs.buildFHSEnvBubblewrap`
- [pkgs/build-support/build-fhsenv-chroot/default.nix ](https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix ): `pkgs.buildFHSEnvChroot`