bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
40 lines
914 B
Nix
40 lines
914 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 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;
|
|
};
|
|
}
|