From 3aed8b68fffa45f9a140be90cecaeced2f11bbff Mon Sep 17 00:00:00 2001 From: Assil Ksiksi Date: Sat, 12 Oct 2024 12:47:45 -0400 Subject: [PATCH] nix run examples in README --- README.md | 9 +++++++-- flake.nix | 2 +- main.go | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 620a1f5..87bba84 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,14 @@ Install the `compose2nix` CLI via one of the following methods: 1. Run using `nix run` (**recommended**): ``` + # Latest nix run github:aksiksi/compose2nix -- -h + + # Specific version + nix run github:aksiksi/compose2nix/v0.3.0 -- -h + + # Specific commit + nix run github:aksiksi/compose2nix/0c38d282d6662fc902fca7ef5b33e889f9e3e59a -- -h ``` 2. Install from `nixpkgs`: ``` @@ -55,11 +62,9 @@ Install the `compose2nix` CLI via one of the following methods: ``` Optionally, you can pin to a specific version: - ```nix compose2nix.url = "github:aksiksi/compose2nix/v0.3.0"; ``` - You can then install the package by adding the following to your NixOS config: ```nix diff --git a/flake.nix b/flake.nix index 413b41b..90f11f4 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ owner = "aksiksi"; # LINT.OnChange(version) version = "0.3.1-pre"; - # LINT.ThenChange(main.go:version,README.md:version) + # LINT.ThenChange(main.go:version) in { # Nix package packages = forAllSystems (system: diff --git a/main.go b/main.go index 0586e6c..c771064 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( const ( // LINT.OnChange(version) appVersion = "0.3.1-pre" - // LINT.ThenChange(flake.nix:version,README.md:version) + // LINT.ThenChange(flake.nix:version) ) // TODO(aksiksi): Investigate parsing flags into structs using the *Val functions.