mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-28 22:57:04 +03:00
Merge #107: Cleanup Cabal files and dependencies; switch to Cabal 2.2
This commit is contained in:
commit
9e42e7eab6
@ -1,3 +1,4 @@
|
|||||||
|
cabal-version: 2.2
|
||||||
name: hnix-store-core
|
name: hnix-store-core
|
||||||
version: 0.4.0.0
|
version: 0.4.0.0
|
||||||
synopsis: Core effects for interacting with the Nix store.
|
synopsis: Core effects for interacting with the Nix store.
|
||||||
@ -17,9 +18,15 @@ extra-source-files: ChangeLog.md
|
|||||||
, README.md
|
, README.md
|
||||||
, tests/samples/example0.drv
|
, tests/samples/example0.drv
|
||||||
, tests/samples/example1.drv
|
, tests/samples/example1.drv
|
||||||
cabal-version: >=1.10
|
|
||||||
|
Common commons
|
||||||
|
if impl(ghc >= 8.10)
|
||||||
|
ghc-options: -Wall -Wunused-packages
|
||||||
|
else
|
||||||
|
ghc-options: -Wall
|
||||||
|
|
||||||
library
|
library
|
||||||
|
import: commons
|
||||||
exposed-modules: System.Nix.Base32
|
exposed-modules: System.Nix.Base32
|
||||||
, System.Nix.Build
|
, System.Nix.Build
|
||||||
, System.Nix.Derivation
|
, System.Nix.Derivation
|
||||||
@ -71,6 +78,7 @@ Flag bounded_memory
|
|||||||
default: False
|
default: False
|
||||||
|
|
||||||
test-suite format-tests
|
test-suite format-tests
|
||||||
|
import: commons
|
||||||
if flag(bounded_memory)
|
if flag(bounded_memory)
|
||||||
cpp-options: -DBOUNDED_MEMORY
|
cpp-options: -DBOUNDED_MEMORY
|
||||||
ghc-options: -rtsopts -fprof-auto
|
ghc-options: -rtsopts -fprof-auto
|
||||||
@ -96,9 +104,7 @@ test-suite format-tests
|
|||||||
, filepath
|
, filepath
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
, io-streams
|
|
||||||
, process
|
, process
|
||||||
, process-extras
|
|
||||||
, tasty
|
, tasty
|
||||||
, tasty-discover
|
, tasty-discover
|
||||||
, tasty-golden
|
, tasty-golden
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
cabal-version: 2.2
|
||||||
name: hnix-store-remote
|
name: hnix-store-remote
|
||||||
version: 0.4.0.0
|
version: 0.4.0.0
|
||||||
synopsis: Remote hnix store
|
synopsis: Remote hnix store
|
||||||
@ -11,7 +12,12 @@ copyright: 2018 Richard Marko
|
|||||||
category: Nix
|
category: Nix
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
extra-source-files: ChangeLog.md, README.md
|
extra-source-files: ChangeLog.md, README.md
|
||||||
cabal-version: >=1.10
|
|
||||||
|
Common commons
|
||||||
|
if impl(ghc >= 8.10)
|
||||||
|
ghc-options: -Wall -Wunused-packages
|
||||||
|
else
|
||||||
|
ghc-options: -Wall
|
||||||
|
|
||||||
flag io-testsuite
|
flag io-testsuite
|
||||||
default:
|
default:
|
||||||
@ -21,6 +27,7 @@ flag io-testsuite
|
|||||||
binaries and Linux namespace support.
|
binaries and Linux namespace support.
|
||||||
|
|
||||||
library
|
library
|
||||||
|
import: commons
|
||||||
exposed-modules: System.Nix.Store.Remote
|
exposed-modules: System.Nix.Store.Remote
|
||||||
, System.Nix.Store.Remote.Binary
|
, System.Nix.Store.Remote.Binary
|
||||||
, System.Nix.Store.Remote.Builders
|
, System.Nix.Store.Remote.Builders
|
||||||
@ -36,14 +43,11 @@ library
|
|||||||
, binary
|
, binary
|
||||||
, bytestring
|
, bytestring
|
||||||
, containers
|
, containers
|
||||||
, filepath
|
|
||||||
, text
|
, text
|
||||||
, unix
|
|
||||||
, network
|
, network
|
||||||
, nix-derivation >= 1.1.1 && <2
|
, nix-derivation >= 1.1.1 && <2
|
||||||
, mtl
|
, mtl
|
||||||
, unordered-containers
|
, unordered-containers
|
||||||
, filepath
|
|
||||||
, time
|
, time
|
||||||
, hnix-store-core >= 0.4 && <0.5
|
, hnix-store-core >= 0.4 && <0.5
|
||||||
, vector
|
, vector
|
||||||
@ -52,6 +56,8 @@ library
|
|||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
test-suite hnix-store-remote-tests
|
test-suite hnix-store-remote-tests
|
||||||
|
import: commons
|
||||||
|
|
||||||
if !flag(io-testsuite)
|
if !flag(io-testsuite)
|
||||||
buildable: False
|
buildable: False
|
||||||
|
|
||||||
@ -63,11 +69,9 @@ test-suite hnix-store-remote-tests
|
|||||||
, Spec
|
, Spec
|
||||||
, Util
|
, Util
|
||||||
hs-source-dirs: tests
|
hs-source-dirs: tests
|
||||||
build-depends:
|
build-depends: base
|
||||||
attoparsec
|
|
||||||
, hnix-store-core >= 0.3
|
, hnix-store-core >= 0.3
|
||||||
, hnix-store-remote
|
, hnix-store-remote
|
||||||
, base
|
|
||||||
, base64-bytestring
|
, base64-bytestring
|
||||||
, binary
|
, binary
|
||||||
, bytestring
|
, bytestring
|
||||||
@ -83,7 +87,6 @@ test-suite hnix-store-remote-tests
|
|||||||
, tasty-hunit
|
, tasty-hunit
|
||||||
, tasty-quickcheck
|
, tasty-quickcheck
|
||||||
, linux-namespaces
|
, linux-namespaces
|
||||||
, mtl
|
|
||||||
, nix-derivation
|
, nix-derivation
|
||||||
, temporary
|
, temporary
|
||||||
, text
|
, text
|
||||||
|
Loading…
Reference in New Issue
Block a user