@@ -17,9 +17,18 @@ source-repository head
18 location: https://github.com/nixos/cabal2nix
18 location: https://github.com/nixos/cabal2nix
20+flag allow-relative-paths
21+ description: If any of the required Nix tools are missing at
22+ build-time, compile a run-time @$PATH@ dependent
23+ variant of this library instead of failing. This is
24+ useful for test environment such as Travis-CI, which
25+ may not have Nix installed.
21 default-language: Haskell2010
29 default-language: Haskell2010
22 hs-source-dirs: src
30 hs-source-dirs: src
23 exposed-modules: Nix.Paths, Nix.FindFile
31 exposed-modules: Nix.Paths, Nix.FindFile
24 build-depends: base < 5, process
32 build-depends: base < 5, process
33+ if !flag(allow-relative-paths)
25− build-tools: nix-instantiate, nix-build, nix-env, nix-store
34+ build-tools: nix-instantiate, nix-build, nix-env, nix-store