-
Notifications
You must be signed in to change notification settings - Fork 21
/
shell.nix
34 lines (28 loc) · 1.01 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, base, bytestring, containers, HUnit, mtl
, network, QuickCheck, stdenv, stm, tasty, tasty-hunit
, tasty-quickcheck, transformers, transformers-compat
, cabal-install
}:
mkDerivation {
pname = "kademlia";
version = "1.1.0.0";
src = ./.;
buildDepends = [
base bytestring containers mtl network stm transformers
transformers-compat
cabal-install
];
testDepends = [
base bytestring containers HUnit mtl network QuickCheck stm tasty
tasty-hunit tasty-quickcheck transformers transformers-compat
];
homepage = "https://github.com/froozen/kademlia";
description = "An implementation of the Kademlia DHT Protocol";
license = stdenv.lib.licenses.bsd3;
};
drv = pkgs.haskell.packages.${compiler}.callPackage f {};
in
if pkgs.lib.inNixShell then drv.env else drv