-
Notifications
You must be signed in to change notification settings - Fork 0
/
meck.nix
33 lines (28 loc) · 875 Bytes
/
meck.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
{ erlang }:
with import <nixpkgs> {}; # bring all of Nixpkgs into scope
stdenv.mkDerivation rec {
version = "0.8.2";
name = "meck-${version}";
src = fetchurl {
url = "https://github.com/eproxus/meck/archive/${version}.tar.gz";
name = "${name}.tar.gz";
sha256 = "dc1ad985b1c994c69b645f5cfd159bf9ba71d10a2984ce354500adb4ff0ae473";
};
unpackPhase = ''
tar xzf $src
cd $name
sed -i 's/all: get-deps compile test doc/all: get-deps compile doc/' Makefile
export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
'';
buildInputs = [ erlang git which ];
installPhase = ''
mkdir -p $out/lib/meck
cp -r ebin $out/lib/meck/.
'';
meta = with stdenv.lib; {
description = "A mocking library for Erlang";
homepage = https://github.com/eproxus/meck;
license = licenses.asl20;
platforms = platforms.linux;
};
}