about summary refs log tree commit diff
path: root/pkgs/development/tools/literate-programming/Literate/default.nix
blob: 88b2f63fd5a597fca77143d7f72e1e5b3c21cad6 (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
{ lib, stdenv, fetchgit, ldc, dub }:

stdenv.mkDerivation {
  pname = "Literate";
  version = "unstable-2021-01-22";

  src = fetchgit {
    url = "https://github.com/zyedidia/Literate.git";
    rev = "7004dffec0cff3068828514eca72172274fd3f7d";
    sha256 = "0x4xgrdskybaa7ssv81grmwyc1k167v3nwj320jvp5l59xxlbcvs";
  };

  buildInputs = [ ldc dub ];

  installPhase = "install -D bin/lit $out/bin/lit";

  meta = with lib; {
    description = "A literate programming tool for any language";
    homepage    = "http://literate.zbyedidia.webfactional.com/";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}