nixpkgs/pkgs/by-name/li/literate/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
915 B
Nix
Raw Normal View History

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";
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";
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
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";
homepage = "https://zyedidia.github.io/literate/";
2024-03-30 11:22:54 +00:00
license = lib.licenses.mit;
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
}