Home Explore Blog CI



nixpkgs

doc/contributing/coding-conventions.chapter.md
7e4b1d7bd1ce50be7bd59822037d2222ae939f0b5157c7240000000300000a0c
# Coding conventions {#chap-conventions}

This section has been moved to [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).

## Syntax {#sec-syntax}

This section has been moved to [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).

## Package naming {#sec-package-naming}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

## File naming and organisation {#sec-organisation}

This section has been moved to [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).

### Versioning {#sec-versioning}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

## Fetching Sources {#sec-sources}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

## Obtaining source hash {#sec-source-hashes}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Obtaining hashes securely {#sec-source-hashes-security}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

## Patches {#sec-patches}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

## Package tests {#sec-package-tests}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Writing inline package tests {#ssec-inline-package-tests-writing}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Writing larger package tests {#ssec-package-tests-writing}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Running package tests {#ssec-package-tests-running}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Examples of package tests {#ssec-package-tests-examples}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Linking NixOS module tests to a package {#ssec-nixos-tests-linking}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

### Import From Derivation {#ssec-import-from-derivation}

This section has been moved to [pkgs/README.md](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md).

Chunks
22b66f28 (1st chunk of `doc/contributing/coding-conventions.chapter.md`)
Title: Moved Content in Coding Conventions
Summary
The sections within the 'Coding Conventions' chapter, including syntax, package naming, file organization, versioning, fetching sources, obtaining source hashes (securely), patches, package tests (inline, larger, running, examples), linking NixOS module tests, and import from derivation, have all been moved to external documents such as CONTRIBUTING.md and pkgs/README.md. The original document now serves as a pointer to these resources.