diff --git a/README.md b/README.md index 7da5f3e..ea1dcfb 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Homebrew](https://img.shields.io/badge/dynamic/json.svg?url=https://api.github.com/repos/zmwangx/metadata/tags&label=homebrew&query=$[0].name&colorB=orange&maxAge=1800)](#homebrew) [![crates.io](https://img.shields.io/crates/v/metadata.svg)](https://crates.io/crates/metadata) +[![Nix](https://repology.org/badge/version-for-repo/nix_unstable/metadata.svg?header=nixpkgs-unstable)](#nix) [![Build status](https://github.com/zmwangx/metadata/workflows/test/badge.svg?branch=master)](https://github.com/zmwangx/metadata/actions) @@ -12,6 +13,7 @@ - [Installation](#installation) - [Homebrew](#homebrew) - [Debian/Ubuntu](#debianubuntu) + - [NixOS/Nixpkgs]($nix) - [Usage](#usage) - [Performance](#performance) - [Bugs](#bugs) @@ -118,6 +120,17 @@ $ add-apt-repository ppa:zmwangx/metadata $ apt update && apt install metadata ``` +### Nix + +On NixOS and any other Linux distro using Nix, `metadata` can be installed with Nix using the unstable channel: + +```console +$ # Install it to your local profile: +$ nix-env -iA metadata +$ # As a Nix shell: +$ nix-shell -p metadata +``` + ### Building from source **FFmpeg with development headers and the Rust toolchain are required.** FFmpeg 3.4 and later are supported.