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