packages feed

nix-paths-1.0.2: nix-paths.cabal

name:          nix-paths
version:       1.0.2
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@.
license:       BSD3
license-file:  LICENSE
author:        Peter Simons
maintainer:    simons@cryp.to
tested-with:   GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2,
               GHC == 9.2.8, GHC == 9.4.8, GHC == 9.6.7, GHC == 9.8.4, GHC == 9.10.3,
               GHC == 9.12.4, GHC == 9.14.1, GHC == 10.0.1
category:      Distribution, Nix
homepage:      https://github.com/peti/nix-paths
bug-reports:   https://github.com/peti/nix-paths/issues
build-type:    Custom
cabal-version: >= 1.10
extra-source-files: README.md

custom-setup
  setup-depends: base == 4.*, Cabal > 2 && < 4

source-repository head
  type:     git
  location: https://github.com/peti/nix-paths

flag allow-relative-paths
  default:     False
  manual:      True
  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.

library
  exposed-modules:  Nix.FindFile
                    Nix.Paths
  hs-source-dirs:   src
  build-depends:    base < 5, process
  default-language: Haskell2010

  if !flag(allow-relative-paths)
    build-tools: nix-build, nix-env, nix-hash, nix-instantiate, nix-store