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