3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #192846 from Misterio77/fennel-luapackages

luaPackages: fennel -> luaPackages.fennel
This commit is contained in:
Anderson Torres 2022-09-24 23:03:31 -03:00 committed by GitHub
commit 9089c201a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 40 additions and 36 deletions

View file

@ -14,6 +14,7 @@ cqueues,,,,,,vcunat
cyrussasl,https://github.com/JorjBauer/lua-cyrussasl.git,,,,,
digestif,https://github.com/astoff/digestif.git,,,0.2-1,5.3,
dkjson,,,,,,
fennel,,,,,,misterio77
fifo,,,,,,
fluent,,,,,,alerque
gitsigns.nvim,https://github.com/lewis6991/gitsigns.nvim.git,,,,5.1,

1 name src ref server version luaversion maintainers
14 cyrussasl https://github.com/JorjBauer/lua-cyrussasl.git
15 digestif https://github.com/astoff/digestif.git 0.2-1 5.3
16 dkjson
17 fennel misterio77
18 fifo
19 fluent alerque
20 gitsigns.nvim https://github.com/lewis6991/gitsigns.nvim.git 5.1

View file

@ -1,31 +0,0 @@
{ lib, stdenv, fetchFromSourcehut, installShellFiles, lua }:
stdenv.mkDerivation rec {
pname = "fennel";
version = "1.2.0";
src = fetchFromSourcehut {
owner = "~technomancy";
repo = pname;
rev = version;
sha256 = "sha256-TXmqvhT7Ab+S0UdLgl4xWrVvE//eCbu6qNnoxB7smE4=";
};
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 ];
};
}

View file

@ -453,6 +453,32 @@ buildLuarocksPackage {
};
}) {};
fennel = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
}:
buildLuarocksPackage {
pname = "fennel";
version = "1.2.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/fennel-1.2.0-1.rockspec";
sha256 = "14qr0gldqgvzx3yzfjvy48inqn46xf0d92pcxp3hr1a17sf7xqmf";
}).outPath;
src = fetchurl {
url = "https://fennel-lang.org/downloads/fennel-1.2.0.tar.gz";
sha256 = "0ymnsri27pj98jbwx7hxsn1w39rxns0i8ds1fl421spc13gx88gx";
};
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "https://fennel-lang.org/";
description = "A lisp that compiles to Lua";
maintainers = with lib.maintainers; [ misterio77 ];
license.fullName = "MIT";
};
}) {};
fifo = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchzip, lua
}:

View file

@ -29,6 +29,15 @@ with prev;
'';
});
fennel = prev.fennel.overrideAttrs(oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [
pkgs.installShellFiles
];
postInstall = ''
installManPage fennel.1
'';
});
cqueues = (prev.lib.overrideLuarocks prev.cqueues (drv: {
externalDeps = [
{ name = "CRYPTO"; dep = pkgs.openssl_1_1; }

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromSourcehut, fennel, lua }:
{ lib, stdenv, fetchFromSourcehut, luaPackages, lua }:
stdenv.mkDerivation rec {
pname = "fnlfmt";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-FKmr5Xihyk+ikYN8WXBq5UFJziwEb8xaUBswNt/JMBg=";
};
nativeBuildInputs = [ fennel ];
nativeBuildInputs = [ luaPackages.fennel ];
buildInputs = [ lua ];
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
runHook preBuild
echo "#!${lua}/bin/lua" > fnlfmt
${fennel}/bin/fennel --require-as-include --compile cli.fnl >> fnlfmt
${luaPackages.fennel}/bin/fennel --require-as-include --compile cli.fnl >> fnlfmt
chmod +x fnlfmt
runHook postBuild

View file

@ -339,6 +339,7 @@ mapAliases ({
fastnlo = throw "'fastnlo' has been renamed to/replaced by 'fastnlo_toolkit'"; # Converted to throw 2022-09-24
fbreader = throw "fbreader has been removed, as the upstream project has been archived"; # Added 2022-05-26
feedreader = throw "feedreader is no longer activily maintained since 2019. The developer is working on a spiritual successor called NewsFlash."; # Added 2022-05-03
inherit (luaPackages) fennel; # Added 2022-09-24
fetchFromGithub = throw "You meant fetchFromGitHub, with a capital H"; # preserve
ffadoFull = throw "'ffadoFull' has been renamed to/replaced by 'ffado'"; # Converted to throw 2022-02-22
ffmpeg-sixel = throw "ffmpeg-sixel has been removed, because it was an outdated/unmaintained fork of ffmpeg"; # Added 2022-03-23";

View file

@ -13394,8 +13394,6 @@ with pkgs;
fasmg = callPackage ../development/compilers/fasmg { };
fennel = callPackage ../development/compilers/fennel { };
firrtl = callPackage ../development/compilers/firrtl { };
flasm = callPackage ../development/compilers/flasm { };