2021-07-10 19:37:57 +00:00
|
|
|
{ lib, stdenv, fetchFromSourcehut, installShellFiles, lua }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fennel";
|
2021-11-16 01:33:39 +00:00
|
|
|
version = "1.0.0";
|
2021-07-10 19:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~technomancy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-16 01:33:39 +00:00
|
|
|
sha256 = "sha256-HhxFTWC1gBY76pQzhn6EdgYHpYQr9zkUox0r4YC7mTQ=";
|
2021-07-10 19:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
buildInputs = [ lua ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage fennel.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Lua Lisp language";
|
|
|
|
homepage = "https://fennel-lang.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = lua.meta.platforms;
|
|
|
|
maintainers = [ maintainers.maaslalani ];
|
|
|
|
};
|
|
|
|
}
|