cli-nix 0.1.1.0 → 0.2.0.0
raw patch · 3 files changed
+22/−2 lines, 3 filesdep +whichdep ~basedep ~lensdep ~logging-effectPVP ok
version bump matches the API change (PVP)
Dependencies added: which
Dependency ranges changed: base, lens, logging-effect, mtl, text
API changes (from Hackage documentation)
+ Bindings.Cli.Nix: nixPrefetchGitPath :: FilePath
+ Bindings.Cli.Nix: nixPrefetchUrlPath :: FilePath
- Bindings.Cli.Nix: nixCmdConfig_args :: HasNixCommonConfig c_ah0j => Lens' c_ah0j [Arg]
+ Bindings.Cli.Nix: nixCmdConfig_args :: HasNixCommonConfig c_aoAo => Lens' c_aoAo [Arg]
- Bindings.Cli.Nix: nixCmdConfig_builders :: HasNixCommonConfig c_ah0j => Lens' c_ah0j [String]
+ Bindings.Cli.Nix: nixCmdConfig_builders :: HasNixCommonConfig c_aoAo => Lens' c_aoAo [String]
- Bindings.Cli.Nix: nixCmdConfig_target :: HasNixCommonConfig c_ah0j => Lens' c_ah0j Target
+ Bindings.Cli.Nix: nixCmdConfig_target :: HasNixCommonConfig c_aoAo => Lens' c_aoAo Target
- Bindings.Cli.Nix: target_attr :: HasTarget c_aeWg => Lens' c_aeWg (Maybe String)
+ Bindings.Cli.Nix: target_attr :: HasTarget c_amjg => Lens' c_amjg (Maybe String)
- Bindings.Cli.Nix: target_expr :: HasTarget c_aeWg => Lens' c_aeWg (Maybe String)
+ Bindings.Cli.Nix: target_expr :: HasTarget c_amjg => Lens' c_amjg (Maybe String)
- Bindings.Cli.Nix: target_path :: HasTarget c_aeWg => Lens' c_aeWg (Maybe FilePath)
+ Bindings.Cli.Nix: target_path :: HasTarget c_amjg => Lens' c_amjg (Maybe FilePath)
Files
- CHANGELOG.md +6/−0
- cli-nix.cabal +3/−2
- src/Bindings/Cli/Nix.hs +13/−0
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Revision history for cli-nix +## 0.2.0.0++* [#2](https://github.com/obsidiansystems/cli-nix) Add static paths for `nix-prefetch-url` and `nix-prefetch-git`.+ **WARNING**: You will not be able to compile `cli-nix` unless these programs are in your `PATH`.+ We strongly recommend using the included Nix files to build `cli-nix`.+ ## 0.1.0.1 * Support GHC 8.8.4. Modify version bounds
cli-nix.cabal view
@@ -1,9 +1,9 @@ cabal-version: >=1.10 name: cli-nix-version: 0.1.1.0+version: 0.2.0.0 license: BSD3 license-file: LICENSE-copyright: Obsidian Systems LLC 2020+copyright: Obsidian Systems LLC 2020 - 2022 maintainer: maintainer@obsidian.systems author: Obsidian Systems LLC synopsis: Bindings to the nix command-line interface@@ -27,6 +27,7 @@ , logging-effect >=1.3.4 && <1.4 , mtl >=2.2.2 && <2.3 , text >=1.2.3.1 && <1.3+ , which >=0.2 && <0.3 ghc-options: -Wall source-repository head
src/Bindings/Cli/Nix.hs view
@@ -37,6 +37,9 @@ , rawArg , runNixShellConfig , strArg++ , nixPrefetchGitPath+ , nixPrefetchUrlPath ) where import Control.Lens@@ -54,6 +57,8 @@ import Data.Monoid ((<>)) import qualified Data.Text as T +import System.Which (staticWhich)+ import Cli.Extras -- | What to build@@ -236,3 +241,11 @@ [ (\x -> ["on", T.pack x]) <$> path , (\a -> ["[" <> T.pack a <> "]"]) <$> (commonCfg ^. nixCmdConfig_target . target_attr) ]++-- | Statically determined (at build-time) path to @nix-prefetch-git@.+nixPrefetchGitPath :: FilePath+nixPrefetchGitPath = $(staticWhich "nix-prefetch-git")++-- | Statically determined (at build-time) path to @nix-prefetch-url@.+nixPrefetchUrlPath :: FilePath+nixPrefetchUrlPath = $(staticWhich "nix-prefetch-url")