2021-07-14 22:03:04 +00:00
|
|
|
{ lib, stdenv, fetchFromSourcehut, installShellFiles, lua }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fennel";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.1.0";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~technomancy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-3Pfl/KNwuGCkZjG/FlF6K2IQHwJQbWsCBmJpLizr1ng=";
|
2021-07-14 22:03:04 +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 ];
|
|
|
|
};
|
|
|
|
}
|