2021-04-23 04:46:02 +00:00
|
|
|
# Coding conventions {#chap-conventions}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
## Syntax {#sec-syntax}
|
2021-10-05 21:13:26 +00:00
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
## Package naming {#sec-package-naming}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
## File naming and organisation {#sec-organisation}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
### Versioning {#sec-versioning}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
## Fetching Sources {#sec-sources}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
## Obtaining source hash {#sec-source-hashes}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
### Obtaining hashes securely {#sec-source-hashes-security}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-23 04:46:02 +00:00
|
|
|
|
|
|
|
## Patches {#sec-patches}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-24 15:01:05 +00:00
|
|
|
|
|
|
|
## Package tests {#sec-package-tests}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-24 15:01:05 +00:00
|
|
|
|
2021-04-17 17:02:16 +00:00
|
|
|
### Writing inline package tests {#ssec-inline-package-tests-writing}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-17 17:02:16 +00:00
|
|
|
|
|
|
|
### Writing larger package tests {#ssec-package-tests-writing}
|
2021-04-24 15:01:05 +00:00
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-24 15:01:05 +00:00
|
|
|
|
|
|
|
### Running package tests {#ssec-package-tests-running}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-04-24 15:01:05 +00:00
|
|
|
|
|
|
|
### Examples of package tests {#ssec-package-tests-examples}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2021-06-25 23:31:10 +00:00
|
|
|
|
|
|
|
### Linking NixOS module tests to a package {#ssec-nixos-tests-linking}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|
2022-12-05 15:24:52 +00:00
|
|
|
|
|
|
|
### Import From Derivation {#ssec-import-from-derivation}
|
|
|
|
|
2023-07-25 15:48:35 +00:00
|
|
|
This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).
|