Skip to content

Commit 9e11428

Browse files
committed
remote: actually use build-remote flag, disable by default, enable via cabal.project
1 parent 2e1cab2 commit 9e11428

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

cabal.project

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
packages: ./hnix-store-core/*.cabal ./hnix-store-remote/*.cabal
1+
packages:
2+
./hnix-store-core/hnix-store-core.cabal
3+
./hnix-store-remote/hnix-store-remote.cabal
4+
5+
package hnix-store-remote
6+
flags: +build-readme
7+

hnix-store-remote/hnix-store-remote.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ flag io-testsuite
6060

6161
flag build-readme
6262
default:
63-
True
63+
False
6464
description:
6565
Build README.lhs example
6666

@@ -97,6 +97,8 @@ library
9797
ghc-options: -Wall
9898

9999
executable remote-readme
100+
if !flag(build-readme)
101+
buildable: False
100102
build-depends:
101103
base >=4.12 && <5
102104
, hnix-store-remote

0 commit comments

Comments
 (0)