From 1b8d4dcec4591f9785693288205fb7ad22b44a83 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Mon, 7 Feb 2022 14:38:20 +0000 Subject: [PATCH] Add nix install details Signed-off-by: 06kellyjac --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da4e357e56e1..b215c7e8c68b 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,14 @@ If you encounter an issue, please [let us know using the issue tracker](https:// ## Installation +**Note**: Currently, Syft is built only for Linux, macOS and Windows. + ### Recommended ```bash curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin ``` -...or, you can specify a release version and destination directory for the installation: +... or, you can specify a release version and destination directory for the installation: ``` curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b @@ -48,7 +50,21 @@ brew tap anchore/syft brew install syft ``` -**Note**: Currently, Syft is built only for macOS and Linux. +### Nix + +**Note**: nix packaging of Syft is [community maintained](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/admin/syft/default.nix) + +Also syft is currently only in the [unstable channel](https://nixos.wiki/wiki/Nix_channels#The_official_channels) awaiting the `22.05` release + +```bash +nix-env -i syft +``` + +... or, just try it out in an ephemeral nix shell + +```bash +nix-shell -p syft +``` ## Getting started