2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildDubPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildDubPackage {
|
2024-06-20 14:57:18 +00:00
|
|
|
pname = "literate";
|
2021-03-19 17:17:44 +00:00
|
|
|
version = "unstable-2021-01-22";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyedidia";
|
|
|
|
repo = "Literate";
|
2021-03-19 17:17:44 +00:00
|
|
|
rev = "7004dffec0cff3068828514eca72172274fd3f7d";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-erNFe0+FlrslEENyO/YxYQbmec0voK31UWr5qVt+nXQ=";
|
2022-03-30 09:31:56 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# as there aren't any non-local dub dependencies, this file just has any empty list
|
|
|
|
dubLock = ./dub-lock.json;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# generate the actual .d source files defined in .lit files
|
|
|
|
preBuild = ''
|
|
|
|
make d-files
|
|
|
|
'';
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 bin/lit -t $out/bin
|
2024-07-27 06:49:29 +00:00
|
|
|
runHook postInstall
|
2024-04-21 15:54:59 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Literate programming tool for any language";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://zyedidia.github.io/literate/";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = lib.licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "lit";
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|