From 770dd735f3e171bdb13188ee45c25431ca0918c0 Mon Sep 17 00:00:00 2001 From: Phil Freeman Date: Wed, 27 Jul 2016 14:01:57 -0700 Subject: [PATCH] Add cabal2nix derivation --- default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..0c9cc46 --- /dev/null +++ b/default.nix @@ -0,0 +1,29 @@ +{ mkDerivation, async, base, bytestring, c2hs, clock, containers +, grpc, managed, pipes, proto3-wire, protobuf-wire, random, safe +, stdenv, stm, tasty, tasty-hunit, text, time, transformers, turtle +, unix, vector +}: +mkDerivation { + pname = "grpc-haskell"; + version = "0.0.0.0"; + src = ./.; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + async base bytestring clock containers managed pipes proto3-wire + protobuf-wire safe stm tasty tasty-hunit transformers vector + ]; + librarySystemDepends = [ grpc ]; + libraryToolDepends = [ c2hs ]; + executableHaskellDepends = [ + async base bytestring containers proto3-wire protobuf-wire random + text transformers + ]; + testHaskellDepends = [ + async base bytestring clock containers managed pipes protobuf-wire + safe tasty tasty-hunit text time transformers turtle unix + ]; + homepage = "http://github.com/aloiscochard/grpc-haskell"; + description = "Haskell implementation of gRPC layered on shared C library"; + license = stdenv.lib.licenses.asl20; +}