packages feed

nix-paths-1: nix-paths.cabal

name:                   nix-paths
version:                1
synopsis:               Knowledge of Nix's installation directories.
description:            This module provides full paths to various Nix
                        utilities, like @nix-store@, @nix-instantiate@, and
                        @nix-env@.
category:               Distribution
homepage:               https://github.com/nixos/cabal2nix#readme
bug-reports:            https://github.com/nixos/cabal2nix/issues
maintainer:             Peter Simons <simons@cryp.to>
license:                BSD3
license-file:           LICENSE
build-type:             Custom
cabal-version:          >= 1.10

flag allow-relative-paths
  description:          If any of the required Nix tools are missing at
                        build-time, compile a run-time @$PATH@ dependent
                        variant of this library instead of failing. This is
                        useful for test environment such as Travis-CI, which
                        may not have Nix installed.
  default:              False
  manual:               True

source-repository head
  type: git
  location: https://github.com/nixos/cabal2nix

library
  default-language:     Haskell2010
  hs-source-dirs:       src
  exposed-modules:      Nix.Paths, Nix.FindFile
  build-depends:        base < 5, process
  if !flag(allow-relative-paths)
    build-tools:        nix-instantiate, nix-build, nix-env, nix-store