enable async and threading

This commit is contained in:
Trolli Schmittlauch 2020-04-01 21:14:16 +02:00
parent ea6ebe590d
commit 6c90eb75b4
2 changed files with 7 additions and 3 deletions

View file

@ -46,7 +46,7 @@ category: Network
extra-source-files: CHANGELOG.md extra-source-files: CHANGELOG.md
common deps common deps
build-depends: base ^>=4.12.0.0, containers ^>=0.6.0.1, bytestring, utf8-string ^>=1.0.1.1, network ^>=2.8.0.1, time ^>=1.8.0.2, cmdargs ^>= 0.10, cryptonite ^>= 0.25, memory, binary-strict build-depends: base ^>=4.12.0.0, containers ^>=0.6.0.1, bytestring, utf8-string ^>=1.0.1.1, network ^>=2.8.0.1, time ^>=1.8.0.2, cmdargs ^>= 0.10, cryptonite ^>= 0.25, memory, binary-strict, async
ghc-options: -Wall ghc-options: -Wall
@ -91,6 +91,8 @@ executable Hash2Pub
-- Base language which the package is written in. -- Base language which the package is written in.
default-language: Haskell2010 default-language: Haskell2010
ghc-options: -threaded
test-suite Hash2Pub-test test-suite Hash2Pub-test
-- Test dependencies. -- Test dependencies.
@ -111,3 +113,4 @@ test-suite Hash2Pub-test
other-extensions: OverloadedStrings other-extensions: OverloadedStrings
build-depends: hspec, Hash2Pub build-depends: hspec, Hash2Pub
ghc-options: -threaded

View file

@ -3,14 +3,15 @@
name = "nixpkgs-pinned"; name = "nixpkgs-pinned";
url = https://github.com/NixOS/nixpkgs/; url = https://github.com/NixOS/nixpkgs/;
ref = "refs/heads/release-20.03"; ref = "refs/heads/release-20.03";
rev = "6bbdce2b15665af6310069cc4f1e667e426c4356"; rev = "08bd71704950d1dddcd55ddbf58adbd045e0ae50";
#rev = "6bbdce2b15665af6310069cc4f1e667e426c4356";
}) {}, }) {},
compiler ? "ghc865" compiler ? "ghc865"
}: }:
let let
hp = pkgs.haskell.packages."${compiler}"; hp = pkgs.haskell.packages."${compiler}";
drv = hp.callCabal2nix "Hash2Pub" ./. {}; drv = hp.callCabal2nix "Hash2Pub" ./Hash2Pub.cabal {};
in in
{ {
my_project = drv; my_project = drv;