git-annex: Build on Darwin, let Cabal determine proper flags
This commit is contained in:
parent
a986835718
commit
476700d56f
@ -11,6 +11,7 @@
|
|||||||
, tastyHunit, tastyQuickcheck, tastyRerun, text, time, transformers
|
, tastyHunit, tastyQuickcheck, tastyRerun, text, time, transformers
|
||||||
, unixCompat, utf8String, uuid, wai, waiExtra, warp, warpTls, which
|
, unixCompat, utf8String, uuid, wai, waiExtra, warp, warpTls, which
|
||||||
, xmlTypes, yesod, yesodCore, yesodDefault, yesodForm, yesodStatic
|
, xmlTypes, yesod, yesodCore, yesodDefault, yesodForm, yesodStatic
|
||||||
|
, fsnotify
|
||||||
}:
|
}:
|
||||||
|
|
||||||
cabal.mkDerivation (self: {
|
cabal.mkDerivation (self: {
|
||||||
@ -21,9 +22,9 @@ cabal.mkDerivation (self: {
|
|||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
buildDepends = [
|
buildDepends = [
|
||||||
aeson async blazeBuilder bloomfilter byteable caseInsensitive
|
aeson async blazeBuilder bloomfilter byteable caseInsensitive
|
||||||
clientsession cryptoApi cryptohash dataDefault dataenc DAV dbus
|
clientsession cryptoApi cryptohash dataDefault dataenc DAV
|
||||||
dlist dns editDistance exceptions extensibleExceptions fdoNotify
|
dlist dns editDistance exceptions extensibleExceptions
|
||||||
feed filepath gnutls hamlet hinotify hS3 hslogger HTTP httpClient
|
feed filepath gnutls hamlet hS3 hslogger HTTP httpClient
|
||||||
httpConduit httpTypes IfElse json liftedBase MissingH monadControl
|
httpConduit httpTypes IfElse json liftedBase MissingH monadControl
|
||||||
mtl network networkConduit networkInfo networkMulticast
|
mtl network networkConduit networkInfo networkMulticast
|
||||||
networkProtocolXmpp optparseApplicative QuickCheck random regexTdfa
|
networkProtocolXmpp optparseApplicative QuickCheck random regexTdfa
|
||||||
@ -31,19 +32,13 @@ cabal.mkDerivation (self: {
|
|||||||
tastyQuickcheck tastyRerun text time transformers unixCompat
|
tastyQuickcheck tastyRerun text time transformers unixCompat
|
||||||
utf8String uuid wai waiExtra warp warpTls xmlTypes yesod yesodCore
|
utf8String uuid wai waiExtra warp warpTls xmlTypes yesod yesodCore
|
||||||
yesodDefault yesodForm yesodStatic
|
yesodDefault yesodForm yesodStatic
|
||||||
];
|
] ++ (if (!self.stdenv.isDarwin) then [
|
||||||
|
dbus fdoNotify hinotify
|
||||||
|
] else [
|
||||||
|
fsnotify
|
||||||
|
]);
|
||||||
buildTools = [ bup curl git gnupg1 lsof openssh perl rsync which ];
|
buildTools = [ bup curl git gnupg1 lsof openssh perl rsync which ];
|
||||||
configureFlags = "-fS3
|
configureFlags = "-fAssistant -fProduction";
|
||||||
-fWebDAV
|
|
||||||
-fInotify
|
|
||||||
-fDbus
|
|
||||||
-fAssistant
|
|
||||||
-fWebapp
|
|
||||||
-fPairing
|
|
||||||
-fXMPP
|
|
||||||
-fDNS
|
|
||||||
-fProduction
|
|
||||||
-fTDFA";
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export HOME="$NIX_BUILD_TOP/tmp"
|
export HOME="$NIX_BUILD_TOP/tmp"
|
||||||
mkdir "$HOME"
|
mkdir "$HOME"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user