# Writing your own Nix Flake checks

DevFeed: [Writing your own Nix Flake checks](<https://devfeed.tech/articles/writing-your-own-nix-flake-checks-38561.md>)

Original publisher: [Read original article](<https://msfjarvis.dev/posts/writing-your-own-nix-flake-checks/>)

Author: Harsh Shandilya

Published: 2022-12-18T06:30:00Z

Content type: tutorial

Language: en

Sources: [Posts on Harsh Shandilya](<https://devfeed.tech/sources/posts-on-harsh-shandilya.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [Shell](<https://devfeed.tech/topics/shell.md>)

Tags: [flake-checks](<https://devfeed.tech/tags/flake-checks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [lint](<https://devfeed.tech/tags/lint.md>), [nix](<https://devfeed.tech/tags/nix.md>), [nix-flakes](<https://devfeed.tech/tags/nix-flakes.md>), [shell-script](<https://devfeed.tech/tags/shell-script.md>)

## AI overview

A practical guide to writing custom checks for Nix flakes. It explains how to define checks as derivations, run formatters and linters, satisfy Nix's output requirement, and reduce build overhead with a smaller stdenv.

## Source excerpt

Quick how-to for writing ad-hoc checks for your own Nix Flakes