nixpkgs/pkgs/development/compilers/fennel/default.nix

32 lines
697 B
Nix
Raw Normal View History

2021-07-10 21:37:57 +02:00
{ lib, stdenv, fetchFromSourcehut, installShellFiles, lua }:
stdenv.mkDerivation rec {
pname = "fennel";
2021-08-12 13:29:53 +02:00
version = "0.10.0";
2021-07-10 21:37:57 +02:00
src = fetchFromSourcehut {
owner = "~technomancy";
repo = pname;
rev = version;
2021-08-12 13:29:53 +02:00
sha256 = "sha256-/xCnaDNZJTBGxIgjPUVeEyMVeRWg8RCNuo5nPpLrJXY=";
2021-07-10 21:37:57 +02: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 ];
};
}