2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ldc, dub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-11-15 13:44:38 +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";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-erNFe0+FlrslEENyO/YxYQbmec0voK31UWr5qVt+nXQ=";
|
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [ ldc dub ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = "install -D bin/lit $out/bin/lit";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A literate programming tool for any language";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://zyedidia.github.io/literate/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "lit";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|