f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
40 lines
915 B
Nix
40 lines
915 B
Nix
{
|
|
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 postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Literate programming tool for any language";
|
|
homepage = "https://zyedidia.github.io/literate/";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "lit";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|