summary refs log tree commit diff
path: root/pkgs/development/pure-modules/doc/default.nix
blob: b25cf7c6572a17a496d8a4a0d169881af93b1d3f (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
{ stdenv, fetchurl, pkg-config, pure }:

stdenv.mkDerivation rec {
  baseName = "doc";
  version = "0.7";
  name = "pure-${baseName}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
    sha256 = "cfa880573941f37868269bcc443a09fecd2a141a78556383d2213f6c9f45ddd9";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ pure ];
  makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];

  meta = {
    description = "A simple utility for literate programming and documenting source code written in the Pure programming language";
    homepage = "http://puredocs.bitbucket.org/pure-doc.html";
    license = stdenv.lib.licenses.gpl3Plus;
    platforms = stdenv.lib.platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ asppsa ];
  };
}