@@ -17,9 +17,18 @@ source-repository head
1717 type: git
1818 location: https://github.com/nixos/cabal2nix
1919
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.
26+ default: False
27+
2028library
2129 default-language: Haskell2010
2230 hs-source-dirs: src
2331 exposed-modules: Nix.Paths, Nix.FindFile
2432 build-depends: base < 5, process
25− build-tools: nix-instantiate, nix-build, nix-env, nix-store
33+ if !flag(allow-relative-paths)
34+ build-tools: nix-instantiate, nix-build, nix-env, nix-store