depot/third_party/nixpkgs/pkgs/by-name/li/literate/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

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;
};
}