about summary refs log tree commit diff
path: root/pkgs/development/web/valum/default.nix
blob: 6348008ab92e7dd357815caec8dd3155ffd38ecc (plain) (blame)
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
{ stdenv, pkgconfig, fetchFromGitHub, python, glib, vala, ctpl
, libgee, libsoup, fcgi }:

stdenv.mkDerivation rec {
  name = "valum-${version}";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "valum-framework";
    repo = "valum";
    rev = "v${version}";
    sha256 = "1lciwqk4k9sf1hl4drl207g0ydlxl906kx9lx5fqhfb8gwcfqh2g";
  };

  buildInputs = [ python pkgconfig glib vala ctpl libgee libsoup fcgi ];

  configurePhase = ''python waf configure --prefix=$out'';

  buildPhase = ''python waf build'';

  installPhase = ''python waf install'';

  meta = with stdenv.lib; {
    homepage = https://github.com/valum-framework/valum;
    description = "Web micro-framework written in Vala";
    platforms = platforms.linux;
    maintainers = [ maintainers.lethalman ];
  };
}