blob: 0892d9f64485bb446af4fbb1545d8e199b45fc8f (
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
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildDubPackage,
fetchFromGitHub,
}:
buildDubPackage {
pname = "Literate";
version = "unstable-2021-01-22";
src = fetchFromGitHub {
owner = "zyedidia";
repo = "Literate";
rev = "7004dffec0cff3068828514eca72172274fd3f7d";
hash = "sha256-erNFe0+FlrslEENyO/YxYQbmec0voK31UWr5qVt+nXQ=";
fetchSubmodules = true;
};
# as there aren't any non-local dub dependencies, this file just has any empty list
dubLock = ./dub-lock.json;
# generate the actual .d source files defined in .lit files
preBuild = ''
make d-files
'';
installPhase = ''
runHook preInstall
install -Dm755 bin/lit -t $out/bin
runHook preInstall
'';
meta = {
description = "Literate programming tool for any language";
homepage = "https://zyedidia.github.io/literate/";
license = lib.licenses.mit;
mainProgram = "lit";
platforms = lib.platforms.unix;
};
}
|