summaryrefslogtreecommitdiffstats
path: root/pkgs/development/idris-modules/wyvern.nix
blob: 32c6b0331b7655ece3ea0da8e44a26820d407eba (plain)
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
{
  build-idris-package,
  fetchFromGitHub,
  contrib,
  effects,
  lib,
}:
build-idris-package {
  pname = "wyvern";
  version = "2017-06-26";

  idrisDeps = [
    contrib
    effects
  ];

  src = fetchFromGitHub {
    owner = "ericqweinstein";
    repo = "wyvern";
    rev = "b9e3e5747c5b23608c6ed5e2ccf43b86caa04292";
    sha256 = "0zihf95w7i0903zy1mzn1ldn697nf57yl80nl32dpgji72h98kh2";
  };

  postUnpack = ''
    sed -i "s/Wyvern.Core/Wyvern.Main/g" source/src/Wyvern.idr
  '';

  meta = {
    description = "Little web server written in Idris";
    homepage = "https://github.com/ericqweinstein/wyvern";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.brainrape ];
  };
}